Issue #18427 has been updated by Pedro CĂ´rte-Real.
Here's a quick patch to solve this:
diff -ur original/puppet-3.2.4/lib/puppet/provider/package/gem.rb
puppet-3.2.4/lib/puppet/provider/package/gem.rb
--- original/puppet-3.2.4/lib/puppet/provider/package/gem.rb
2013-08-14 23:00:35.000000000 +0100
+++ puppet-3.2.4/lib/puppet/provider/package/gem.rb 2013-09-06
12:30:28.000000000 +0100
@@ -54,7 +54,7 @@
versions = $2.split(/,\s*/)
{
:name => name,
- :ensure => versions,
+ :ensure => versions.map{|v| v.split[0]},
:provider => :gem
}
else
I've tested it locally and it solves the problem. I haven't been able to run
the test suite though.
----------------------------------------
Bug #18427: gem package provider is confused by platform components in version
strings
https://projects.puppetlabs.com/issues/18427#change-97218
* Author: Luke M
* Status: Accepted
* Priority: Normal
* Assignee: Charlie Sharpsteen
* Category: package
* Target version:
* Affected Puppet version: 2.7.20
* Keywords: gem arch platform version_info simplefix
* Branch:
----------------------------------------
Using:
package{'facter':
ensure => latest,
provider => 'gem',
source => "http://puppet:8808",
}
Produces:
notice: /Stage[main]/Common_puppet::Hpux/Package[facter]/ensure: ensure
changed '1.6.17' to '1.6.17 ruby'
This happens on every puppet run.
--
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.