summaryrefslogtreecommitdiff
path: root/build/parsePrep.c
diff options
context:
space:
mode:
authorJindrich Novy <jnovy@redhat.com>2008-07-07 14:49:33 +0200
committerJindrich Novy <jnovy@redhat.com>2008-07-07 14:50:13 +0200
commit1a173c486dd1d83f22f8123317303fc1fb880f54 (patch)
tree694087b8854863c7e3f651fa0f152c1f6526abc3 /build/parsePrep.c
parentff23d0a2cf9d9b9fac3e2818fd1f067e79ab70a1 (diff)
downloadrpm-1a173c486dd1d83f22f8123317303fc1fb880f54.tar.gz
rpm-1a173c486dd1d83f22f8123317303fc1fb880f54.tar.bz2
rpm-1a173c486dd1d83f22f8123317303fc1fb880f54.zip
Make Source0: equal to Source: again
Diffstat (limited to 'build/parsePrep.c')
-rw-r--r--build/parsePrep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/parsePrep.c b/build/parsePrep.c
index 82100cbc7..fe13dc890 100644
--- a/build/parsePrep.c
+++ b/build/parsePrep.c
@@ -154,7 +154,7 @@ static char *doUntar(rpmSpec spec, uint32_t c, int quietly)
}
}
if (sp == NULL) {
- if (c != INT_MAX) {
+ if (c) {
rpmlog(RPMLOG_ERR, _("No source number %u\n"), c);
} else {
rpmlog(RPMLOG_ERR, _("No \"Source:\" tag in the spec file\n"));
@@ -349,7 +349,7 @@ static int doSetupMacro(rpmSpec spec, const char *line)
/* do the default action */
if (!createDir && !skipDefaultAction) {
- char *chptr = doUntar(spec, INT_MAX, quietly);
+ char *chptr = doUntar(spec, 0, quietly);
if (!chptr)
return RPMRC_FAIL;
appendLineStringBuf(spec->prep, chptr);