diff options
-rwxr-xr-x | metadot | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -117,7 +117,8 @@ function metadot_deps { # Remove installed packages from list for dep in $deps; do - if ! dpkg-query -W -f='${Status}' $dep | grep -q '^install ok'; then + #if ! dpkg-query -W -f='${Status}' $dep | grep -q '^install ok'; then + if ! dpkg -l $dep 2> /dev/null | grep -q "^ii"; then deps_to_install="$deps_to_install $dep" fi done |