Add chaotic aur despite getting yay from OPR

This commit is contained in:
David Heinemeier Hansson 2025-08-24 20:19:26 +02:00
parent fc853ffe96
commit fc43706190

View File

@ -17,7 +17,7 @@ fi
sudo pacman -Sy --needed --noconfirm yay
# Only add Chaotic-AUR if the architecture is x86_64 so ARM users can build the packages
if [[ "$(uname -m)" == "x86_64" ]] && [ -z "$DISABLE_CHAOTIC" ] && ! command -v yay &>/dev/null; then
if [[ "$(uname -m)" == "x86_64" ]] && [ -z "$DISABLE_CHAOTIC" ]; then
# Try installing Chaotic-AUR keyring and mirrorlist
if ! pacman-key --list-keys 3056513887B78AEB >/dev/null 2>&1 &&
sudo pacman-key --recv-key 3056513887B78AEB &&
@ -30,6 +30,6 @@ if [[ "$(uname -m)" == "x86_64" ]] && [ -z "$DISABLE_CHAOTIC" ] && ! command -v
echo -e '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist' | sudo tee -a /etc/pacman.conf >/dev/null
fi
else
echo "Failed to install Chaotic-AUR, so won't include it in pacman config!"
echo -e "Failed to install Chaotic-AUR, so won't include it in pacman config!"
fi
fi