On Wed, Feb 23, 2011 at 00:51, Avleen Vig <[email protected]> wrote:

> I spun up an instance of Ubuntu 10.10 in EC2 tonight and installed
> puppet, for the purpose of testing mongodb. Ubuntu ships with Puppet
> 2.6.1

[…]
> I believe this is caused by the following code in /usr/lib/ruby/1.8/
> puppet/provider/package/apt.rb:
>  60     str = @resource[:name]
>  61     case should
>  62     when true, false, Symbol
>  63       # pass
>  64     else
>  65       # Add the package version and --force-yes option
>  66       str += "=#{should}"
>  67       cmd << "--force-yes"
>  68     end
>
> So in this case, when the version was specified, it broke aptitude.
> On the command line, quoting the switches line this works:
>    -o DPkg::Options::="--force-confold --force-yes"
> However adding the quotes like this to apt.rb didn't seem to do the
> trick.
>
> I couldn't find any similar reported bugs. Has anyone else seen this
> before?

I don't recall seeing it, but I have a horrible feeling I know where
things are going sour in there.

Anyway, it looks to be a genuine bug, so please report it into RedMine for us.

Thanks for doing such good analysis of where the problem wound up, too.

Regards,
    Daniel
-- 
⎋ Puppet Labs Developer – http://puppetlabs.com
✉ Daniel Pittman <[email protected]>
✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775
♲ Made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en.

Reply via email to