package bblass: fix ldconfig_postinst_fragment to not return an error if no /etc...
authorKoen Kooi <koen@openembedded.org>
Thu, 30 Oct 2008 10:40:08 +0000 (11:40 +0100)
committerKoen Kooi <koen@openembedded.org>
Thu, 30 Oct 2008 10:40:08 +0000 (11:40 +0100)
classes/package.bbclass

index 4dfd5f0..8db000b 100644 (file)
@@ -551,7 +551,9 @@ emit_pkgdata[dirs] = "${PKGDATA_DIR}/runtime"
 
 ldconfig_postinst_fragment() {
 if [ x"$D" = "x" ]; then
-       [ -x /sbin/ldconfig ] && [ -e /etc/ld.so.conf ] && /sbin/ldconfig
+       if [ -e /etc/ld.so.conf ] ; then
+               [ -x /sbin/ldconfig ] && /sbin/ldconfig
+       fi
 fi
 }