tl-reflector-hook/tl-reflector.hook

13 lines
458 B
Plaintext
Raw Normal View History

2020-11-14 20:06:21 +00:00
# Shamelessly copied from https://wiki.archlinux.org/index.php/Reflector#pacman_hook
[Trigger]
Operation = Upgrade
Type = Package
Target = pacman-mirrorlist
Target = tl-reflector-hook
2020-11-14 20:06:21 +00:00
[Action]
Description = Updating pacman-mirrorlist with reflector and removing pacnew...
When = PostTransaction
Depends = reflector
Exec = /bin/sh -c 'systemctl start reflector.service; if [ -f /etc/pacman.d/mirrorlist.pacnew ]; then rm /etc/pacman.d/mirrorlist.pacnew; fi'