Issue #6681 has been updated by R.I. Pienaar.

Nigel Kersten wrote:
> The aptitude/apt provider relationship feels problematic given this, and we 
> should probably move to them having a common ancestor instead.

I agree this stuff shouldnt be coupled.  But I think we should solve the 
immediate problem, get the fix out then deal with the bigger design issue, 
possibly even in a different ticket.  Right now the provider is broken, this 
should be the focus.

Commenting here because there was a release which would have greatly benefited 
from having this fixed.
----------------------------------------
Bug #6681: aptitude provider broken as aptitute doesnt support --force-yes
https://projects.puppetlabs.com/issues/6681

Author: R.I. Pienaar
Status: Ready For Testing
Priority: High
Assignee: Nigel Kersten
Category: package
Target version: 2.6.x
Affected Puppet version: 2.6.0
Keywords: 
Branch: https://github.com/jamtur01/puppet/tree/tickets/2.6.x/6681


After upgrading from 0.24.8 to 2.6.4 on debian etch, lenny and lucid we have 
issues using the aptitude provider.

The aptitude provider inherits from the apt provider, somewhere between 0.24.8 
and 2.6.4 the apt provider started adding --force-yes and aptitude doesnt 
support this option:

0.24.8 to 0.25.5 apt.rb:

<pre>
        str = @resource[:name]
        case should
        when true, false, Symbol
            # pass
        else
            # Add the package version
            str += "=%s" % should
        end
</pre>

And on 2.6.0 that is:

<pre>
    str = @resource[:name]
    case should
    when true, false, Symbol
      # pass
    else
      # Add the package version and --force-yes option
      str += "=#{should}"
      cmd << "--force-yes"
    end
</pre>

aptitude inherits this and fails.


I did some digging and this was introduced in #1999 commit 
2fae0bded559a23dcab5338dd899e272e0d0678e


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