Issue #3182 has been updated by Stephen Price.

James, I believe this duplicates #2279. Any changes on this issue since it was 
last update?
----------------------------------------
Bug #3182: gem provider only matches first installed gem version
https://projects.puppetlabs.com/issues/3182

Author: Dan Bode
Status: Accepted
Priority: Normal
Assignee: James Turnbull
Category: package
Target version: 
Affected Puppet version: 0.25.4
Keywords: gem provider package version
Branch: 


The gem provider is only matching the fist listed installed gem version for 
rails in the below example.

Here is the list of installed gems:

<pre>
# gem list
*** LOCAL GEMS ***
actionmailer (2.3.5, 2.1.2)
actionpack (2.3.5, 2.1.2)
activerecord (2.3.5, 2.1.2)
activeresource (2.3.5, 2.1.2)
activesupport (2.3.5, 2.1.2)
facter (1.5.6)
puppet (0.25.1)
rack (1.0.1)
rails (2.3.5, 2.1.2)
rake (0.8.7)
</pre>

puppet understands that version 2.3.5 is already installed

<pre>
# puppet -e 'package{rails: ensure=>"2.3.5", provider=>gem}'
# no output, nothing happens
</pre>

but, it is confused about 2.1.2

<pre>
# puppet -e 'package{rails: ensure=>"2.1.2", provider=>gem}'
notice: //Package[rails]/ensure: ensure changed '2.3.5' to '2.1.2'
</pre>

if I run the above puppet command again, it tries to install the package 
version 2.1.2 again (and again, and again)


-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to