]> gitweb.fluxo.info Git - metadot.git/commitdiff
Change the way we look for installed packages
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 15 Jul 2018 18:37:45 +0000 (15:37 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 15 Jul 2018 18:37:45 +0000 (15:37 -0300)
metadot

diff --git a/metadot b/metadot
index 16732d2cb7b407a8852e01e1956c75e554af89d0..8e7b3e26c63ee686047189b5d73669d54384947e 100755 (executable)
--- a/metadot
+++ b/metadot
@@ -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