diff options
-rw-r--r-- | etc-pacman.d-hooks-mirrorupgrade.hook | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/etc-pacman.d-hooks-mirrorupgrade.hook b/etc-pacman.d-hooks-mirrorupgrade.hook new file mode 100644 index 0000000..4769ee4 --- /dev/null +++ b/etc-pacman.d-hooks-mirrorupgrade.hook @@ -0,0 +1,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" |