Merge pull request #533 from aartoni/fix/universe-repo

Reflect Artix repository structure change
This commit is contained in:
Luke Smith 2023-09-11 17:41:14 +00:00 committed by GitHub
commit c3da3ca44d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,25 +84,12 @@ refreshkeys() {
;; ;;
*) *)
whiptail --infobox "Enabling Arch Repositories for more a more extensive software collection..." 7 40 whiptail --infobox "Enabling Arch Repositories for more a more extensive software collection..." 7 40
if ! grep -q "^\[universe\]" /etc/pacman.conf; then
echo "[universe]
Server = https://universe.artixlinux.org/\$arch
Server = https://mirror1.artixlinux.org/universe/\$arch
Server = https://mirror.pascalpuffke.de/artix-universe/\$arch
Server = https://mirrors.qontinuum.space/artixlinux-universe/\$arch
Server = https://mirror1.cl.netactuate.com/artix/universe/\$arch
Server = https://ftp.crifo.org/artix-universe/\$arch
Server = https://artix.sakamoto.pl/universe/\$arch" >>/etc/pacman.conf
pacman -Sy --noconfirm >/dev/null 2>&1
fi
pacman --noconfirm --needed -S \ pacman --noconfirm --needed -S \
artix-keyring artix-archlinux-support >/dev/null 2>&1 artix-keyring artix-archlinux-support >/dev/null 2>&1
for repo in extra community; do grep -q "^\[extra\]" /etc/pacman.conf ||
grep -q "^\[$repo\]" /etc/pacman.conf || echo "[extra]
echo "[$repo]
Include = /etc/pacman.d/mirrorlist-arch" >>/etc/pacman.conf Include = /etc/pacman.d/mirrorlist-arch" >>/etc/pacman.conf
done pacman -Sy --noconfirm >/dev/null 2>&1
pacman -Sy >/dev/null 2>&1
pacman-key --populate archlinux >/dev/null 2>&1 pacman-key --populate archlinux >/dev/null 2>&1
;; ;;
esac esac