mirror of
https://github.com/winesapOS/winesapOS.git
synced 2025-10-22 06:56:53 +00:00
[upgrade] Check for mirrorlist first
before adding the Chaotic AUR repository.
This commit is contained in:
parent
2fbf6e01f7
commit
d02f421733
1 changed files with 10 additions and 6 deletions
|
@ -415,14 +415,18 @@ ${CMD_PACMAN} --noconfirm -U /chaotic-mirrorlist.pkg.tar.zst
|
|||
rm -f /chaotic-*.pkg.tar.zst
|
||||
|
||||
# Configure the Pacman configuration after the keys and mirrors have been installed for the Chaotic AUR.
|
||||
if ! grep -q "\[chaotic-aur\]" /etc/pacman.conf; then
|
||||
echo "Adding the Chaotic AUR repository..."
|
||||
echo "[chaotic-aur]
|
||||
if ${CMD_PACMAN} -Q chaotic-mirrorlist; then
|
||||
if ${CMD_PACMAN} -Q chaotic-keyring; then
|
||||
if ! grep -q "\[chaotic-aur\]" /etc/pacman.conf; then
|
||||
echo "Adding the Chaotic AUR repository..."
|
||||
echo "[chaotic-aur]
|
||||
Include = /etc/pacman.d/chaotic-mirrorlist
|
||||
SigLevel = Optional TrustedOnly" >> /etc/pacman.conf
|
||||
echo "Adding the Chaotic AUR repository complete."
|
||||
else
|
||||
crudini_wrapper --set /etc/pacman.conf chaotic-aur SigLevel "Optional TrustedOnly"
|
||||
echo "Adding the Chaotic AUR repository complete."
|
||||
else
|
||||
crudini_wrapper --set /etc/pacman.conf chaotic-aur SigLevel "Optional TrustedOnly"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
crudini_wrapper --del /etc/pacman.conf arch-mact2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue