Issue #13519 has been updated by Nathan Huisman.

Nathan Huisman wrote:
> Regexp is having trouble figuring out what part of the "version" it should 
> compare resulting in the gem being "reinstalled" every time a puppet run 
> happens.
> 
> One quick fix is to change the regexp 
> 
> Line 48 from gem.rb
> 
>     #if desc =~ /^(\S+)\s+\((.+)\)/
>      if desc =~ /^(\S+)\s+\((\S+).*\)/
> 
> 
> notice: /Stage[main]/Opennebula::Dependencies::Gems/Package[thin]/ensure: 
> ensure changed '1.3.1 x86_64-linux' to '1.3.1 ruby x86_64-linux'
> info: /Stage[main]/Opennebula::Dependencies::Gems/Package[thin]: Scheduling 
> refresh of Exec[FixGemFiles]
> notice: /Stage[main]/Opennebula::Dependencies::Gems/Package[json]/ensure: 
> ensure changed '1.6.4 x86_64-linux' to '1.6.4 ruby x86_64-linux'
> info: /Stage[main]/Opennebula::Dependencies::Gems/Package[json]: Scheduling 
> refresh of Exec[FixGemFiles]
> notice: /Stage[main]/Opennebula::Dependencies::Gems/Package[mysql]/ensure: 
> ensure changed '2.8.1 x86_64-linux' to '2.8.1 ruby x86_64-linux'


----------------------------------------
Bug #13519: Gem provider regexp is wrong
https://projects.puppetlabs.com/issues/13519#change-58949

Author: Nathan Huisman
Status: Unreviewed
Priority: Normal
Assignee: Ken Barber
Category: 
Target version: 
Affected Puppet version: 
Keywords: ken sucks
Branch: 


Regexp is having trouble figuring out what part of the "version" it should 
compare resulting in the gem being "reinstalled" every time a puppet run 
happens.

One quick fix is to change the regexp 

Line 48 from gem.rb

    #if desc =~ /^(\S+)\s+\((.+)\)/a
     if desc =~ /^(\S+)\s+\((\S+).*\)/


notice: /Stage[main]/Opennebula::Dependencies::Gems/Package[thin]/ensure: 
ensure changed '1.3.1 x86_64-linux' to '1.3.1 ruby x86_64-linux'
info: /Stage[main]/Opennebula::Dependencies::Gems/Package[thin]: Scheduling 
refresh of Exec[FixGemFiles]
notice: /Stage[main]/Opennebula::Dependencies::Gems/Package[json]/ensure: 
ensure changed '1.6.4 x86_64-linux' to '1.6.4 ruby x86_64-linux'
info: /Stage[main]/Opennebula::Dependencies::Gems/Package[json]: Scheduling 
refresh of Exec[FixGemFiles]
notice: /Stage[main]/Opennebula::Dependencies::Gems/Package[mysql]/ensure: 
ensure changed '2.8.1 x86_64-linux' to '2.8.1 ruby x86_64-linux'



-- 
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