From d71314b8ed1b9cb62287ad674aee7fe1931a037c Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Wed, 11 Dec 2013 18:03:40 +0800 Subject: 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 Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-extended/lsb/lsbtest/LSB_Test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta/recipes-extended/lsb/lsbtest/LSB_Test.sh') diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh index db4e7496e5..2004157db1 100644 --- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh +++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh @@ -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 ] -- cgit 1.2.3-korg