Compare commits

...

4 Commits

Author SHA1 Message Date
deimosian 376dd9ca40
Merge 6394b6e6b7 into 6e7ac0544e 2025-02-20 06:29:34 +01:00
deimosian 6394b6e6b7
Independent package database update 2025-02-17 11:09:23 -05:00
deimosian 5858f90d80
Remove additional -y 2025-02-16 06:48:17 -05:00
deimosian 6543392358
Actually check repo version
Actually check repo version of keyring package on first run of upgrade...
2025-02-16 01:59:30 -05:00
1 changed files with 7 additions and 6 deletions

View File

@ -178,26 +178,27 @@ fi
# Check Arch Linux PGP Keyring before System Upgrade to prevent failure.
function upgrade() {
sudo pacman -Sy
echo ":: Checking Arch Linux PGP Keyring..."
local installedver="$(LANG= sudo pacman -Qi archlinux-keyring | grep -Po '(?<=Version : ).*')"
local currentver="$(LANG= sudo pacman -Si archlinux-keyring | grep -Po '(?<=Version : ).*')"
if [ $installedver != $currentver ]; then
echo " Arch Linux PGP Keyring is out of date."
echo " Updating before full system upgrade."
sudo pacman -Sy --needed --noconfirm archlinux-keyring
sudo pacman -S --needed --noconfirm archlinux-keyring
else
echo " Arch Linux PGP Keyring is up to date."
echo " Proceeding with full system upgrade."
fi
if (( $+commands[yay] )); then
yay -Syu
yay -Su
elif (( $+commands[trizen] )); then
trizen -Syu
trizen -Su
elif (( $+commands[pacaur] )); then
pacaur -Syu
pacaur -Su
elif (( $+commands[aura] )); then
sudo aura -Syu
sudo aura -Su
else
sudo pacman -Syu
sudo pacman -Su
fi
}