diff options
author | Philippe Coval <philippe.coval@osg.samsung.com> | 2016-01-20 10:33:25 +0100 |
---|---|---|
committer | Leon Anavi <leon.anavi@konsulko.com> | 2016-01-27 08:27:22 +0000 |
commit | 2bed7855439061b3847b0320350319a09deb90f0 (patch) | |
tree | 2333c1b14c77d89889dcbf2a137ab0bfcff5b9c8 | |
parent | f983d4aa734afd9f4ad17f3aebaccbc80032486c (diff) | |
download | tizen-distro-2bed7855439061b3847b0320350319a09deb90f0.tar.gz tizen-distro-2bed7855439061b3847b0320350319a09deb90f0.tar.bz2 tizen-distro-2bed7855439061b3847b0320350319a09deb90f0.zip |
meta-tizen: privacy-manager-server: Prevent running ldconfig if not on system
Without this change,
bitbake tries to run ldconfig on host instead
and then complains (but not fail !) about permission issue like :
/sbin/ldconfig.real: \
Can't create temporary cache file /etc/ld.so.cache~: \
Permission denied
Note, "or condition" is prefered because of shell's -e option.
Change-Id: I06d3731455912b536c053b29833de9d44832027b
(From meta-tizen rev: 4a9ae2d0394a94ad7ecbd927aae40b125ee5baf7)
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
-rw-r--r-- | meta-tizen/meta-tizen-common-base/recipes-security/privacy-manager-server/privacy-manager-server.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-tizen/meta-tizen-common-base/recipes-security/privacy-manager-server/privacy-manager-server.inc b/meta-tizen/meta-tizen-common-base/recipes-security/privacy-manager-server/privacy-manager-server.inc index 01c3909602..eb5bfefc05 100644 --- a/meta-tizen/meta-tizen-common-base/recipes-security/privacy-manager-server/privacy-manager-server.inc +++ b/meta-tizen/meta-tizen-common-base/recipes-security/privacy-manager-server/privacy-manager-server.inc @@ -171,7 +171,7 @@ pkg_postinst_privacy-manager-client() { pkg_postinst_privacy-manager-server() { #!/bin/sh -e - ldconfig + [ "" != "$D" ] || ldconfig echo "Check privacy DB" if [ ! -f $D${prefix}/dbspace/.privacy.db ] then |