]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- make __spec_install_post_check_so useful, fail build properly
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 4 Oct 2010 08:38:02 +0000 (08:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.581

rpm.macros

index 6882a1eed6b8594d5e355769b289961c8b7a50a3..0e66c18b81a5529bbac6e800d73b690ee2dee01e 100644 (file)
@@ -647,7 +647,7 @@ fi; }; __spec_install_post_chrpath } } }
         LC_ALL=C objdump -T $f 2> /dev/null | LC_ALL=C awk -v "file=$f" 'BEGIN { found=0; skip["program_name"]=1; symbols = "" } /^[0-9a-z]+ +D +\*UND\*/ { if ($NF in skip) { next; }; found = 1; symbols = symbols "\n\t" $NF } END { if (found) { print "\nUnresolved symbols found in: " file symbols; exit(1); } } ' || fail=1 ; \
     done ; \
     echo " DONE"; \
-    %{!?no_install_post_check_so:[ $fail -eq 1 ] && : || :;} \
+    %{!?no_install_post_check_so:return $fail;} \
 }; __spec_install_post_check_so }}
 
 #-----------------------------------------------------------------
This page took 0.065532 seconds and 4 git commands to generate.