Issue #17995 has been updated by Lee Lowder. Category set to Debian Status changed from Unreviewed to Needs Decision Keywords set to package provider debian
The proposed fix looks like it would be simple enough to implement, but there would need to be sufficient testing to make sure there are not side effects and that the change is backwards compatible. This would also need to have a PR setup for it ---------------------------------------- Bug #17995: Package is being reinstalled every time when using debian backports https://projects.puppetlabs.com/issues/17995#change-82582 Author: Danny Van der Meulen Status: Needs Decision Priority: Normal Assignee: Category: Debian Target version: Affected Puppet version: Keywords: package provider debian 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 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
