[pacman-dev] [PATCH 1/2] Split common utility functions for libalpm and pacman