diff options
Diffstat (limited to 'meta/recipes-devtools/run-postinsts')
-rwxr-xr-x | meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts index 04ba3941bc..10f2118e96 100755 --- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts +++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts @@ -16,23 +16,25 @@ pm_installed=false for pm in $backend_list; do pi_dir="#SYSCONFDIR#/$pm-postinsts" - [ -d $pi_dir ] && break + if [ ! -d $pi_dir ]; then + continue + fi + # found the package manager, it has postinsts case $pm in "deb") if [ -s "#LOCALSTATEDIR#/lib/dpkg/status" ]; then pm_installed=true - break fi ;; "ipk") - if [ -s "/var/lib/opkg/status" ]; then + if [ -s "#LOCALSTATEDIR#/lib/opkg/status" ]; then pm_installed=true - break fi ;; esac + break done remove_rcsd_link () { |