Use dpkg-query -s to query for packages

By own experience, dpkg-query -l doesn't always return 1 if a package isn't installed.

dpkg-query -s seems more reliable.
pull/20/head
Guilherme Silva 4 years ago committed by GitHub
parent 4be6d4c748
commit ceda055feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,7 +45,7 @@ dependencies() {
install
;;
*"buntu"|"Linux Mint"|"Debian")
MANAGER_QUERY="dpkg-query -l"
MANAGER_QUERY="dpkg-query -s"
MANAGER_INSTALL="apt install"
DEPS="{gcc,g++,gcc-multilib,g++-multilib,ninja-build,python3-pip,python3-setuptools,python3-wheel,pkg-config,mesa-common-dev,libx11-dev:i386}"
install

Loading…
Cancel
Save