All pastes #772059 Raw Edit

Something

public text v1 · immutable
·published 2007-11-13 15:01 UTC
rendered paste body
--- build/files.c       10 Nov 2007 18:06:41 -0000      1.288
+++ build/files.c       13 Nov 2007 15:00:58 -0000
@@ -2307,7 +2307,7 @@
     /* Init the file list structure */
     memset(&fl, 0, sizeof(fl));
 
-    fl.buildRootURL = rpmGenPath(spec->rootURL, "%{?buildroot}", NULL);
+    fl.buildRootURL = rpmGenPath(spec->rootURL, spec->buildRootURL ? spec->buildRootURL : "%{?buildroot}", NULL);
 
     he->tag = RPMTAG_DEFAULTPREFIX;
     xx = hge(pkg->header, he, 0);