[rhel7-branch 1/6] Put all mock results into the top-level source dir.

bcl installerbot-noreply at redhat.com
Wed Jun 3 18:07:41 UTC 2015


From: Chris Lumens <clumens at redhat.com>

This allows us to capture the mock logs in jenkins, among other things.

(cherry picked from commit bdb4a0f48c6d7fb0975f651d4e6b4bb530bf2f50)

Related: rhbz#1196721
---
 Makefile.am | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 457de81..5670c42 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -94,10 +94,8 @@ api:
 	doxygen docs/api.cfg
 
 rc-release: scratch-bumpver scratch
-	mock -r $(MOCKCHROOT) --buildsrpm  --spec ./$(PACKAGE_NAME).spec --sources . || exit 1
-	cp /var/lib/mock/$(MOCKCHROOT)/result/*src.rpm . || exit 1
-	mock -r $(MOCKCHROOT) --rebuild *src.rpm || exit 1
-	cp /var/lib/mock/$(MOCKCHROOT)/result/*.rpm . || exit 1
+	mock -r $(MOCKCHROOT) --buildsrpm  --spec ./$(PACKAGE_NAME).spec --sources . --resultdir $(PWD) || exit 1
+	mock -r $(MOCKCHROOT) --rebuild *src.rpm --resultdir $(PWD) || exit 1
 
 bumpver: po-pull
 	@opts="-n $(PACKAGE_NAME) -v $(PACKAGE_VERSION) -r $(PACKAGE_RELEASE) -b $(PACKAGE_BUGREPORT)" ; \


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/4dec2f6d6a5a1bc0a3acd679223e6511eed85b42


More information about the anaconda-patches mailing list