Update clean cache on update menu

This commit is contained in:
MatMoul 2016-01-11 20:14:42 +01:00
parent 49c078d81c
commit 460be61c27

View file

@ -16,8 +16,8 @@ if [ ! "$aurhelper" = "1" ]; then
options+=("" "") options+=("" "")
fi fi
options+=("Upgrade" "pacman -Syu") options+=("Upgrade" "pacman -Syu")
options+=("Clean" "pacman -Sc")
options+=("Clean orphan" "pacman -Rns $(pacman -Qqtd)") options+=("Clean orphan" "pacman -Rns $(pacman -Qqtd)")
options+=("Clean cache" "pacman -Sc")
options+=("" "") options+=("" "")
options+=("Edit pacman.conf" "") options+=("Edit pacman.conf" "")
options+=("Edit mirrorlist" "") options+=("Edit mirrorlist" "")
@ -81,10 +81,8 @@ case $sel in
checkaurdependencies checkaurdependencies
sudo -u aurbuilder packer -Syu sudo -u aurbuilder packer -Syu
;; ;;
'Clean') pacman -Sc;; 'Clean orphan') pacman -Rns $(pacman -Qqtd);;
'Clean orphan') 'Clean cache') pacman -Sc;;
pacman -Rns $(pacman -Qqtd)
;;
'Edit pacman.conf') nano /etc/pacman.conf;; 'Edit pacman.conf') nano /etc/pacman.conf;;
'Edit mirrorlist') nano /etc/pacman.d/mirrorlist;; 'Edit mirrorlist') nano /etc/pacman.d/mirrorlist;;
'Remove db.lck') rm /var/lib/pacman/db.lck;; 'Remove db.lck') rm /var/lib/pacman/db.lck;;