]> git.pld-linux.org Git - packages/rpm.git/blame - create-build-tree-after-parse.patch
- cleanup db deps, rpm.org links with system db (as in -ldb)
[packages/rpm.git] / create-build-tree-after-parse.patch
CommitLineData
b7aed470
JR
1--- rpm-4.15.1/rpmbuild.c~ 2019-06-26 16:17:31.000000000 +0200
2+++ rpm-4.15.1/rpmbuild.c 2020-01-13 23:29:36.442259031 +0100
3@@ -435,13 +435,6 @@
4 if (ba->buildRootOverride)
5 buildRootURL = rpmGenPath(NULL, ba->buildRootOverride, NULL);
6
7- /* Create build tree if necessary */
8- const char * buildtree = "%{_topdir}:%{_specdir}:%{_sourcedir}:%{_builddir}:%{_rpmdir}:%{_srcrpmdir}:%{_buildrootdir}";
9- const char * rootdir = rpmtsRootDir(ts);
10- if (rpmMkdirs(!rstreq(rootdir, "/") ? rootdir : NULL , buildtree)) {
11- goto exit;
12- }
13-
14 if (buildMode == 't') {
15 char *srcdir = NULL, *dir;
16
17@@ -508,6 +501,13 @@
18 goto exit;
19 }
20
21+ /* Create build tree if necessary */
22+ const char * buildtree = "%{_topdir}:%{_specdir}:%{_sourcedir}:%{_builddir}:%{_rpmdir}:%{_srcrpmdir}:%{_buildrootdir}";
23+ const char * rootdir = rpmtsRootDir(ts);
24+ if (rpmMkdirs(!rstreq(rootdir, "/") ? rootdir : NULL , buildtree)) {
25+ goto exit;
26+ }
27+
28 if ((rc = rpmSpecBuild(ts, spec, ba))) {
29 goto exit;
30 }
This page took 0.029359 seconds and 4 git commands to generate.