From: Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Date: Mon, 18 Aug 2008 22:53:51 +0000 (+0000)
Subject: this now should behave correctly with broken specfiles: the build should stop altogether
X-Git-Tag: 4.2-rc21~12
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=3855a2fa7db384931e9a9f21153ec73b4894cb6d;p=build.git

this now should behave correctly with broken specfiles: the build should stop altogether
---

diff --git a/Makefile b/Makefile
index b405faca..9b6a7eb3 100644
--- a/Makefile
+++ b/Makefile
@@ -308,7 +308,7 @@ spec2make: spec2make.c
 define target_mk
 MAKE/$(1).mk: $($(1).specpath) spec2make .rpmmacros
 	mkdir -p MAKE
-	./spec2make $($(1)-RPMFLAGS) $($(1).specpath) $(1) > MAKE/$(1).mk || rm MAKE/$(1).mk
+	./spec2make $($(1)-RPMFLAGS) $($(1).specpath) $(1) > MAKE/$(1).mk || { rm MAKE/$(1).mk; exit 1; }
 endef
 
 $(foreach package,$(ALL),$(eval $(call target_mk,$(package))))