[oe-commits] =?UTF-8?Q?David=20Nystr=C3=B6m=20?=: nss: Fix return codes in postinstall

git at git.openembedded.org git at git.openembedded.org
Mon Sep 30 20:57:12 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 5dc3eb72c4b9b68ab13310383a90fe7779bf92a7
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5dc3eb72c4b9b68ab13310383a90fe7779bf92a7

Author: David Nyström <david.c.nystrom at gmail.com>
Date:   Sun Sep 29 21:44:23 2013 +0000

nss: Fix return codes in postinstall

exit 0 was done if $D != NULL, if one or more
shlibsign executions fails.

Signed-off-by: David Nyström <david.nystrom at enea.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-support/nss/nss.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-support/nss/nss.inc b/meta/recipes-support/nss/nss.inc
index 11f1b7f..2b2b668 100644
--- a/meta/recipes-support/nss/nss.inc
+++ b/meta/recipes-support/nss/nss.inc
@@ -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



More information about the Openembedded-commits mailing list