Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > media > main-updates-src > by-pkgid > 2e20fbe220a1d0f48a15d5008a7dd680 > files > 8

rpm-4.4.6-22.1mdv2007.1.src.rpm

--- ./build/pack.c.buildsubdir	2005-08-25 17:17:30.000000000 +0200
+++ ./build/pack.c	2005-08-25 17:17:39.000000000 +0200
@@ -138,7 +138,8 @@
     FILE * f;
     FD_t fd;
 
-    fn = rpmGetPath("%{_builddir}/%{?_buildsubdir:%{_buildsubdir}/}", file, NULL);
+    /* XXX use rpmGenPath(rootdir, "%{_buildir}/%{_buildsubdir}/", file) */
+    fn = rpmGetPath("%{_builddir}/", spec->buildSubdir, "/", file, NULL);
 
     fd = Fopen(fn, "r.ufdio");
     if (fn != buf) fn = _free(fn);