We have an ensure for a package, let''s say foo-1.0.0.i386 on an x86_64 system. Yum installs the package, but since it returns foo-1.0.0 and not foo-1.0.0.i386, the yum validation thinks it was not installed and errors out. I think that the validation is fundamentally broken. --Russell --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
And here''s a patch for it... just change the line to this: if should && /^:ensure\..*/.match(should) It may not fix the fundamental problem but it fixes this one. I tested it, it seems to work. --Russell On Fri, Jun 6, 2008 at 10:25 AM, Russell Miller <duskglow@gmail.com> wrote:> We have an ensure for a package, let''s say foo-1.0.0.i386 on an x86_64 > system. > > Yum installs the package, but since it returns foo-1.0.0 and not > foo-1.0.0.i386, the yum validation thinks it was not installed and errors > out. > > I think that the validation is fundamentally broken. > > --Russell >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Russell Miller schrieb:> On Fri, Jun 6, 2008 at 10:25 AM, Russell Miller <duskglow@gmail.com> wrote: > >> We have an ensure for a package, let''s say foo-1.0.0.i386 on an x86_64 >> system. >> >> Yum installs the package, but since it returns foo-1.0.0 and not >> foo-1.0.0.i386, the yum validation thinks it was not installed and errors >> out. >> >> I think that the validation is fundamentally broken.> And here''s a patch for it... just change the line to this: > > if should && /^:ensure\..*/.match(should) > > It may not fix the fundamental problem but it fixes this one. I tested it, > it seems to work.If there is any possibility that there are rpms with dots in their name, the regexp should look like this to always match the _last_ dot in the name: > if should && /^:ensure\.[^.]*/.match(should) Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---