diff options
author | Kai Kang <kai.kang@windriver.com> | 2013-12-11 18:03:40 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-18 11:21:25 +0000 |
commit | d71314b8ed1b9cb62287ad674aee7fe1931a037c (patch) | |
tree | edae17f4eed0e234b1d77edb03162f8d2efd2e4d /meta/recipes-extended/lsb/lsbtest | |
parent | b34cc27f4663a558b869b149ffcc43a11684262a (diff) | |
download | poky-d71314b8ed1b9cb62287ad674aee7fe1931a037c.tar.gz |
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>
Diffstat (limited to 'meta/recipes-extended/lsb/lsbtest')
-rw-r--r-- | meta/recipes-extended/lsb/lsbtest/LSB_Test.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
444 | echo "Fail to creat Dirnames file" | 444 | echo "Fail to creat Dirnames file" |
445 | fi | 445 | fi |
446 | 446 | ||
447 | [ -x /sbin/ldconfig ] && { | ||
447 | echo "" | 448 | echo "" |
448 | echo "---------------------------------" | 449 | echo "---------------------------------" |
449 | echo "Update cache" | 450 | echo "Update cache" |
450 | ldconfig | 451 | /sbin/ldconfig |
451 | check; | 452 | check; |
453 | } | ||
452 | 454 | ||
453 | # Check loop device | 455 | # Check loop device |
454 | if [ ! -b /dev/loop0 ] | 456 | if [ ! -b /dev/loop0 ] |