inspired by https://www.reddit.com/r/archlinux/comments/4zdol6/a_pacman_hook_to_update_pacman_mirrorlist_using/