From 2727f683f1837d76cf33d874be8a6be463efdf92 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Thu, 3 Sep 2020 16:31:25 +0000 Subject: [PATCH] Support archlinux derivatives in installdeps. Assume an archlinux-like distribution based on the existence of `/usr/bin/pacman` as the last test. - Fix #710. Signed-off-by: Rafael Kitover --- installdeps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installdeps b/installdeps index 0444f156..3e8f3143 100755 --- a/installdeps +++ b/installdeps @@ -172,8 +172,6 @@ linux_installdeps() { fedora_installdeps elif [ -f /etc/redhat-release ] || [ -f /etc/centos-release ]; then rhel_installdeps - elif [ -f /etc/arch-release ]; then - archlinux_installdeps elif [ -f /etc/solus-release ]; then solus_installdeps elif [ -f /etc/gentoo-release ]; then @@ -184,6 +182,8 @@ linux_installdeps() { suse_installdeps ;; esac + elif [ -x /usr/bin/pacman ]; then + archlinux_installdeps else error "Don't know how to install deps on your version of Linux" fi