Issue #17995 has been updated by Matthaus Owens. Project changed from Puppet Community Package Repository to Puppet
Moving to the main Puppet project as this isn't a packaging issue. ---------------------------------------- Bug #17995: Package is being reinstalled every time when using debian backports https://projects.puppetlabs.com/issues/17995#change-78297 Author: Danny Van der Meulen Status: Unreviewed Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: I'm using the squeeze-backports repository on our machines in puppet : package { 'rsyslog': ensure => 'present', name => 'rsyslog/squeeze-backports'; } IMHO this is the cleanest way to select targets in debian/puppet. This works okay, but every time when a puppet run runs it want to reinstall the package. Quite logical because the dpkg.rb provider uses : dpkg-query -W --showformat '${Status} ${Package} ${Version}\\n', @resource[:name] @resource[:name] evaluates to 'rsyslog/squeeze-backports' and dpkg-query will return with exit code 1 ( package not found ). Why not change the query into : dpkg-query -W --showformat '${Status} ${Package} ${Version}\\n', @resource[:name].split('/')[0] Which will select the correct package name and solves my problem. -- 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 post to this group, send email to puppet-bugs@googlegroups.com. To unsubscribe from this group, send email to puppet-bugs+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.