]> git.pld-linux.org Git - packages/python.git/commitdiff
- catch modules build failures
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 21 Jan 2007 20:25:33 +0000 (20:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python.spec -> 1.291

python.spec

index 7f3248d8937e05fb17d6424ccc2393b4b4e8c2c9..4394acfe7fd87a1945ed5b9d3e8e38adfbe64d11 100644 (file)
@@ -538,9 +538,16 @@ CPPFLAGS="-I/usr/include/ncurses"; export CPPFLAGS
 ./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
This page took 0.255021 seconds and 4 git commands to generate.