From 5f0f094e81c935635d875fa26ab0ef1517c83652 Mon Sep 17 00:00:00 2001 From: Adam Hovorka Date: Fri, 5 Oct 2018 08:52:53 -0600 Subject: Add reflector pacman mirrorupgrade.hook --- etc-pacman.d-hooks-mirrorupgrade.hook | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 etc-pacman.d-hooks-mirrorupgrade.hook 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" -- cgit v1.2.3-70-g09d2