From ceda055febda2972d618f45b4df41a6cef91c89c Mon Sep 17 00:00:00 2001 From: Guilherme Silva <626206+guihkx@users.noreply.github.com> Date: Sat, 8 Feb 2020 09:47:41 -0300 Subject: [PATCH] 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. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index f03b2d6e..6d2915ce 100755 --- a/build.sh +++ b/build.sh @@ -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