summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-10-30 11:40:08 +0100
committerKoen Kooi <koen@openembedded.org>2008-10-30 11:40:08 +0100
commit1320d90a7ad2c96f9a5a45d5abb886c150a752e4 (patch)
tree4ee54fc1528cb450515a5ef58a8799896c06bc73 /classes
parent22e85416d9973330854c17e0c53df16b62363b48 (diff)
package bblass: fix ldconfig_postinst_fragment to not return an error if no /etc/ld.so.conf is present
Diffstat (limited to 'classes')
-rw-r--r--classes/package.bbclass4
1 files changed, 3 insertions, 1 deletions
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
}