For each package check membership in the list instead of checking each package individually using pacman to see if it is a pacman group. Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>