Issue #20221 has been updated by Raul Macian.
I'm using RHEL and CentOs the yum provider. Looking the code at https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/yum.rb I see that "latest" option queries for version+release and a comment # FIXME: there could be more than one update for a package which could be my case where I have several packages with the same version but different releases. ---------------------------------------- Bug #20221: Cannot install the latest release of a specific package version https://projects.puppetlabs.com/issues/20221#change-89224 * Author: Raul Macian * Status: Needs More Information * Priority: Normal * Assignee: Raul Macian * Category: * Target version: * Affected Puppet version: 3.1.0 * Keywords: * Branch: ---------------------------------------- With package ensure cannot select to install the latest release of a given version. For example, a package with version 1.0.0 and 1.0.1 on the same repo: package { "package": ensure => "latest" } Install the latest release of any of both packages, installs the newer release alternating 1.0.0 and 1.0.1 package { "package-1.0.0": ensure => "latest" } Does not update the package when a new release is present package { "package": ensure => "1.0.0" } Tries to identify the version of a package including the release. This tipically throws an error like Error: Could not update: Failed to update to version 1.0.0, got version 1.0.0-1960.a02d20b instead -- 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.
