summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-11-27 14:57:37 +0100
committerHarald Hoyer <harald@redhat.com>2009-11-27 14:57:37 +0100
commit0cd23d778e7dfe06a424cb46dd90e04360b5a402 (patch)
tree36d8a103e0082c2089c965b845f77c141983a694
parent14f6ad921bd78d68f82d8056208935c36126f22c (diff)
Makefile: gitrpm: cleanup on failed rpmbuild
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b29c938..14ad3fd 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,7 @@ gitrpm: dracut-$(VERSION)-$(GITVERSION).tar.bz2
cat dracut.spec >> dracut.spec.git
mv dracut.spec dracut.spec.bak
mv dracut.spec.git dracut.spec
- rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" --define "_specdir $$PWD" --define "_srcrpmdir $$PWD" --define "_rpmdir $$PWD" --define "gittag $(GITVERSION)" -ba dracut.spec
+ rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" --define "_specdir $$PWD" --define "_srcrpmdir $$PWD" --define "_rpmdir $$PWD" --define "gittag $(GITVERSION)" -ba dracut.spec || :
mv dracut.spec.bak dracut.spec
rm -fr BUILD BUILDROOT