SPECS: python.spec - catch modules build failures

arekm arekm at pld-linux.org
Sun Jan 21 21:25:38 CET 2007


Author: arekm                        Date: Sun Jan 21 20:25:38 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- catch modules build failures

---- Files affected:
SPECS:
   python.spec (1.290 -> 1.291) 

---- Diffs:

================================================================
Index: SPECS/python.spec
diff -u SPECS/python.spec:1.290 SPECS/python.spec:1.291
--- SPECS/python.spec:1.290	Sun Jan 21 19:57:49 2007
+++ SPECS/python.spec	Sun Jan 21 21:25:33 2007
@@ -539,9 +539,16 @@
 ./Doc/tools/getversioninfo
 
 %{__make} \
-	OPT="%{rpmcflags}"
-
-find . -name '*failed*'
+	OPT="%{rpmcflags}" 2>&1 | awk '
+BEGIN { fail = 0; logmsg = ""; }
+{
+        if ($0 ~ /\*\*\* WARNING:/) {
+                fail = 1;
+                logmsg = logmsg $0;
+        }
+        print $0;
+}
+END { if (fail) { print "\nPROBLEMS FOUND:"; print logmsg; exit(1); } }'
 
 LC_ALL=C
 export LC_ALL
@@ -929,6 +936,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.291  2007/01/21 20:25:33  arekm
+- catch modules build failures
+
 Revision 1.290  2007/01/21 18:57:49  arekm
 - bcond for old openssl
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python.spec?r1=1.290&r2=1.291&f=u



More information about the pld-cvs-commit mailing list