aboutsummaryrefslogtreecommitdiff
path: root/etc-pacman.d-hooks-mirrorupgrade.hook
blob: 4769ee481dceae01325fb7484c4a67655dc0c6b3 (plain)
1
2
3
4
5
6
7
8
9
10
[Trigger]
Operation = Upgrade
Type = Package
Target = pacman-mirrorlist

[Action]
Description = Updating pacman-mirrorlist with reflector and removing pacnew...
When = PostTransaction
Depends = reflector
Exec = /bin/sh -c "reflector --country 'United States' --latest 100 --age 24 --sort rate --save /etc/pacman.d/mirrorlist; rm -f /etc/pacman.d/mirrorlist.pacnew"