summaryrefslogtreecommitdiff
path: root/build/pack.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-21 11:37:21 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-21 11:37:21 +0300
commit8f7874c1933fc1dff36685d13abfedda56ca9ab7 (patch)
treede372b5d494ad0a7de7357f28bf1316701a3adfe /build/pack.c
parent2fb15a5443c6a1461a53309d3d4ace598996d8b2 (diff)
downloadrpm-8f7874c1933fc1dff36685d13abfedda56ca9ab7.tar.gz
rpm-8f7874c1933fc1dff36685d13abfedda56ca9ab7.tar.bz2
rpm-8f7874c1933fc1dff36685d13abfedda56ca9ab7.zip
Fix up bunch of silly int vs rpmRC return code mismatches
Diffstat (limited to 'build/pack.c')
-rw-r--r--build/pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/pack.c b/build/pack.c
index fa4b4efa9..0b57613fe 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -658,7 +658,7 @@ static rpmRC checkPackages(char *pkgcheck)
xx = system(pkgcheck);
if (WEXITSTATUS(xx) == -1 || WEXITSTATUS(xx) == 127) {
rpmlog(RPMLOG_ERR, _("Execution of \"%s\" failed.\n"), pkgcheck);
- if (fail) return 127;
+ if (fail) return RPMRC_NOTFOUND;
}
if (WEXITSTATUS(xx) != 0) {
rpmlog(RPMLOG_ERR, _("Package check \"%s\" failed.\n"), pkgcheck);