false positive for checking if already installed
authorIan Kelling <iank@fsf.org>
Sun, 30 Jun 2019 19:23:32 +0000 (15:23 -0400)
committerIan Kelling <iank@fsf.org>
Sun, 30 Jun 2019 19:23:32 +0000 (15:23 -0400)
src/package-manager-abstractions

index f66a7620b2292f6c402bcf7127ee28b17057db83..2c291e83c8f244588cdd15d715fe8f7812c761ab 100644 (file)
@@ -72,7 +72,7 @@ elif command -v apt-get &>/dev/null; then
     fi
   }
   pi() {
-    if dpkg -s -- "$@" &>/dev/null; then
+    if dpkg -s -- "$@" | grep -Fx "Status: install ok installed" &>/dev/null; then
       return 0
     fi
     while fuser /var/lib/dpkg/lock &>/dev/null; do sleep 1; done