From 656168a8857ce08bf8160b947c095a36a82b222a Mon Sep 17 00:00:00 2001 From: Jamie Date: Mon, 25 Oct 2021 12:12:45 -0400 Subject: [PATCH] Fix auto-enable arch repos After enabling arch repos, need to download database files. Otherwise, calls to `pacman -S` return errors that are suppressed by redirection to /dev/null. Error Message: ```sh warning: database file for 'extra' does not exist (use "-Sy" to download) error: failed to prepare transcation (could not find database) ``` Fixes: https://github.com/LukeSmithxyz/LARBS/issues/393 --- larbs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/larbs.sh b/larbs.sh index 26c405c..e6445a7 100644 --- a/larbs.sh +++ b/larbs.sh @@ -77,6 +77,7 @@ refreshkeys() { \ echo "[$repo] Include = /etc/pacman.d/mirrorlist-arch" >> /etc/pacman.conf done + pacman -Sy >/dev/null 2>&1 pacman-key --populate archlinux ;; esac ;}