aboutsummaryrefslogtreecommitdiff
path: root/linaro-hwpack-install
diff options
context:
space:
mode:
authorMichael Hudson <michael.hudson@linaro.org>2010-12-16 15:19:53 +1300
committerMichael Hudson <michael.hudson@linaro.org>2010-12-16 15:19:53 +1300
commite2e5b1acc032480f1e39484d113f20b0691ba91d (patch)
tree82d1aed2e3426bc9f4a2b9ee5071624d9bcceafb /linaro-hwpack-install
parent1936092958b9570acd91077bc6ca410702cd85ff (diff)
don't mark the dependency package as automatically installed; hide stderr from dpkg --get-selections
Diffstat (limited to 'linaro-hwpack-install')
-rwxr-xr-xlinaro-hwpack-install4
1 files changed, 3 insertions, 1 deletions
diff --git a/linaro-hwpack-install b/linaro-hwpack-install
index 061d550..efda78c 100755
--- a/linaro-hwpack-install
+++ b/linaro-hwpack-install
@@ -185,7 +185,9 @@ fi
if [ "$DEP_PACKAGE_PRESENT" == "yes" ]; then
to_be_installed=
for package in $packages_without_versions; do
- { dpkg --get-selections $package | grep -qw 'install$'; } || to_be_installed="$to_be_installed $package"
+ if [ "${package}" != "${dependency_package}" ]; then
+ { dpkg --get-selections $package 2>/dev/null| grep -qw 'install$'; } || to_be_installed="$to_be_installed $package"
+ fi
done
fi