Fix a typo: the macro is currently called %{buildsubdir}

Patch from OpenSuSE
This commit is contained in:
Paul Nasrat 2007-04-16 13:06:24 +01:00
parent 0707e98841
commit cc4d429e93
2 changed files with 2 additions and 2 deletions

View File

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

View File

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