diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-10-09 14:06:06 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-10-09 14:06:06 +0300 |
commit | d709195c3a51522629443cddea042513f47c5ad3 (patch) | |
tree | 2d0f91f22a13179bb56331ae9f7d13ed38159cee /build/build.c | |
parent | 46921b2334ddde2cad8f3546c6f9b6124adbb3a2 (diff) | |
download | librpm-tizen-d709195c3a51522629443cddea042513f47c5ad3.tar.gz librpm-tizen-d709195c3a51522629443cddea042513f47c5ad3.tar.bz2 librpm-tizen-d709195c3a51522629443cddea042513f47c5ad3.zip |
Replace all rpmError() uses with rpmlog()
Diffstat (limited to 'build/build.c')
-rw-r--r-- | build/build.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/build.c b/build/build.c index b654f43f7..abd631dab 100644 --- a/build/build.c +++ b/build/build.c @@ -129,7 +129,7 @@ int doScript(rpmSpec spec, int what, const char *name, StringBuf sb, int test) } if (makeTempFile(rootURL, &scriptName, &fd) || fd == NULL || Ferror(fd)) { - rpmError(RPMERR_SCRIPT, _("Unable to open temp file.\n")); + rpmlog(RPMERR_SCRIPT, _("Unable to open temp file.\n")); rc = RPMERR_SCRIPT; goto exit; } @@ -221,7 +221,7 @@ fprintf(stderr, "*** addMacros\n"); errno = 0; (void) execvp(argv[0], (char *const *)argv); - rpmError(RPMERR_SCRIPT, _("Exec of %s failed (%s): %s\n"), + rpmlog(RPMERR_SCRIPT, _("Exec of %s failed (%s): %s\n"), scriptName, name, strerror(errno)); _exit(-1); @@ -230,7 +230,7 @@ fprintf(stderr, "*** addMacros\n"); rc = waitpid(child, &status, 0); if (!WIFEXITED(status) || WEXITSTATUS(status)) { - rpmError(RPMERR_SCRIPT, _("Bad exit status from %s (%s)\n"), + rpmlog(RPMERR_SCRIPT, _("Bad exit status from %s (%s)\n"), scriptName, name); rc = RPMERR_SCRIPT; } else |