Make Source0: equal to Source: again
This commit is contained in:
parent
ff23d0a2cf
commit
1a173c486d
|
@ -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);
|
||||
|
|
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue