Update for pacman 4.1 API changes.