Skip to contentSkip to conversation

nss: Fix return codes in postinstall

PATCH New David Nyström 1 participant 1 message Sep 29, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nss: Fix return codes in postinstall

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

---
 meta/recipes-support/nss/nss.inc | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-support/nss/nss.inc +3 -0
index 11f1b7f..2b2b668 100644
@@ -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
Signature · 1 line
1.8.3.2