From: Koen Kooi Date: Thu, 30 Oct 2008 10:40:08 +0000 (+0100) Subject: package bblass: fix ldconfig_postinst_fragment to not return an error if no /etc... X-Git-Tag: Release-2010-05/1~5547 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1320d90a7ad2c96f9a5a45d5abb886c150a752e4;p=openembedded.git package bblass: fix ldconfig_postinst_fragment to not return an error if no /etc/ld.so.conf is present --- diff --git a/classes/package.bbclass b/classes/package.bbclass index 4dfd5f0444..8db000b23a 100644 --- a/classes/package.bbclass +++ b/classes/package.bbclass @@ -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 }