iankelling.org
/
git
/
distro-functions
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d5a995
)
false positive for checking if already installed
author
Ian Kelling
<iank@fsf.org>
Sun, 30 Jun 2019 19:23:32 +0000
(15:23 -0400)
committer
Ian Kelling
<iank@fsf.org>
Sun, 30 Jun 2019 19:23:32 +0000
(15:23 -0400)
src/package-manager-abstractions
patch
|
blob
|
history
diff --git
a/src/package-manager-abstractions
b/src/package-manager-abstractions
index f66a7620b2292f6c402bcf7127ee28b17057db83..2c291e83c8f244588cdd15d715fe8f7812c761ab 100644
(file)
--- a/
src/package-manager-abstractions
+++ b/
src/package-manager-abstractions
@@
-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