Fix a typo: the macro is currently called %{buildsubdir}
Patch from OpenSuSE
This commit is contained in:
parent
0707e98841
commit
cc4d429e93
|
@ -1942,7 +1942,7 @@ static int processPackageFiles(Spec spec, Package pkg,
|
|||
if (*pkg->fileFile == '/') {
|
||||
ffn = rpmGetPath(pkg->fileFile, NULL);
|
||||
} else {
|
||||
/* XXX FIXME: add %{_buildsubdir} */
|
||||
/* XXX FIXME: add %{buildsubdir} */
|
||||
ffn = rpmGetPath("%{_builddir}/",
|
||||
(spec->buildSubdir ? spec->buildSubdir : "") ,
|
||||
"/", pkg->fileFile, NULL);
|
||||
|
|
|
@ -138,7 +138,7 @@ static /*@only@*/ /*@null@*/ StringBuf addFileToTagAux(Spec spec,
|
|||
FILE * f;
|
||||
FD_t fd;
|
||||
|
||||
fn = rpmGetPath("%{_builddir}/%{?_buildsubdir:%{_buildsubdir}/}", file, NULL);
|
||||
fn = rpmGetPath("%{_builddir}/%{?buildsubdir:%{buildsubdir}/}", file, NULL);
|
||||
|
||||
fd = Fopen(fn, "r.ufdio");
|
||||
if (fn != buf) fn = _free(fn);
|
||||
|
|
Loading…
Reference in New Issue