nss: Fix return codes in postinstall
authorDavid Nyström <david.c.nystrom@gmail.com>
Sun, 29 Sep 2013 21:44:23 +0000 (21:44 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Sep 2013 21:11:58 +0000 (22:11 +0100)
exit 0 was done if $D != NULL, if one or more
shlibsign executions fails.

(From OE-Core rev: 5dc3eb72c4b9b68ab13310383a90fe7779bf92a7)

Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/nss/nss.inc

index 11f1b7f..2b2b668 100644 (file)
@@ -168,6 +168,9 @@ pkg_postinst_${PN} () {
             BN=`basename $I .chk`
             FN=$DN/$BN.so
             shlibsign -i $FN
+           if [ $? -ne 0 ]; then
+              exit 1
+           fi
         done
         exit 0
     fi