Made a better patch
Updated to funtions to pacman 4.1 (Thanks to Maxime Gauduin)