Issue #21287 has been updated by Charlie Sharpsteen. Status changed from Unreviewed to Accepted
A patch would be great! If you are interested in writing one, details of the process can be found in the [CONTRIBUTING.md](https://github.com/puppetlabs/puppet/blob/master/CONTRIBUTING.md) document which is in the [Puppet source tree on GitHub](https://github.com/puppetlabs/puppet). If you have any questions about the patch submission process, please ask. For help with developing a patch, the #puppet-dev channel on IRC is a great place to get help. We also have a Q&A site at <https://ask.puppetlabs.com> that is a great place to ask questions. ---------------------------------------- Bug #21287: Pacman provider constantly reinstalls package groups on arch linux https://projects.puppetlabs.com/issues/21287#change-93214 * Author: Jason Antman * Status: Accepted * Priority: Normal * Assignee: * Category: provider * Target version: * Affected Puppet version: 3.2.1 * Keywords: pacman, yaourt, arch * Branch: ---------------------------------------- The pacman system understands the concept of package "groups"; a group of packages given a name, all of which are installed when that name is specified. The default repos' package groups can be seen at https://www.archlinux.org/groups/; examples include kdebase (22 packages; https://www.archlinux.org/groups/x86_64/kdebase/), xorg (77 packages ;https://www.archlinux.org/groups/x86_64/xorg/) and xorg-apps (37 packages; https://www.archlinux.org/groups/x86_64/xorg-apps/). If I specify one of these groups as a Package resource in my manifest, the packages within the group are reinstalled at every puppet run. This is because running a package list query (listcmd; pacman -Q) only lists the actual packages installed, not the groups. The pacman provider (self.instances) should also execute `pacman -Qg` and add the unique values of the first column of output (the names of installed package groups) to the list of installed packages - this will stop the reinstall from happening. My ruby is pretty basic, but I'll take a crack at a patch sometime this week. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
