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
This commit is contained in:
parent
8a30c54cd4
commit
656168a885
1 changed files with 1 additions and 0 deletions
1
larbs.sh
1
larbs.sh
|
@ -77,6 +77,7 @@ refreshkeys() { \
|
||||||
echo "[$repo]
|
echo "[$repo]
|
||||||
Include = /etc/pacman.d/mirrorlist-arch" >> /etc/pacman.conf
|
Include = /etc/pacman.d/mirrorlist-arch" >> /etc/pacman.conf
|
||||||
done
|
done
|
||||||
|
pacman -Sy >/dev/null 2>&1
|
||||||
pacman-key --populate archlinux
|
pacman-key --populate archlinux
|
||||||
;;
|
;;
|
||||||
esac ;}
|
esac ;}
|
||||||
|
|
Loading…
Reference in a new issue