[Trigger]
Operation = Upgrade
Type = Package
Target = pacman-mirrorlist

[Action]
Description = Updating /etc/pacman.d/mirrorlist
When = PostTransaction
Depends = reflector
Exec = /bin/sh -c "reflector --protocol https --latest 30 --sort rate --save /etc/pacman.d/mirrorl"
