1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

LSB_Test.sh: check ldconfig before update cache

LSB_Test.sh run ldconfig to update library cache. If command ldconfig
doesn't exists, test will fail.

Check whether ldconfig exists. If not, don't update library cache.

(From OE-Core rev: e3e5ebd6d05263bd7878537df93e9f1572f1172a)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Kai Kang
2013-12-11 18:03:40 +08:00
committed by Richard Purdie
parent b34cc27f46
commit d71314b8ed
@@ -444,11 +444,13 @@ else
echo "Fail to creat Dirnames file"
fi
[ -x /sbin/ldconfig ] && {
echo ""
echo "---------------------------------"
echo "Update cache"
ldconfig
/sbin/ldconfig
check;
}
# Check loop device
if [ ! -b /dev/loop0 ]