SpectreOS-old/pacman-hooks/mirrorupgrade.hook

11 lines
348 B
Text
Raw Permalink Normal View History

2018-07-17 23:26:31 +02:00
[Trigger]
Operation = Upgrade
Type = Package
Target = pacman-mirrorlist
[Action]
Description = Updating pacman-mirrorlist with reflector and removing pacnew, this can take a few minutes...
When = PostTransaction
Depends = reflector
Exec = /bin/bash -c "reflector --sort rate --save /etc/pacman.d/mirrorlist; rm -f /etc/pacman.d/mirrorlist.pacnew"