Make Source0: equal to Source: again

This commit is contained in:
Jindrich Novy 2008-07-07 14:49:33 +02:00
parent ff23d0a2cf
commit 1a173c486d
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -287,7 +287,7 @@ int addSource(rpmSpec spec, Package pkg, const char *field, rpmTag tag)
nump = fieldp_backup;
SKIPSPACE(nump);
if (nump == NULL || *nump == '\0') {
num = INT_MAX;
num = flag == RPMBUILD_ISSOURCE ? 0 : INT_MAX;
} else {
if (parseUnsignedNum(fieldp_backup, &num)) {
rpmlog(RPMLOG_ERR, _("line %d: Bad %s number: %s\n"),