Issue #6681 has been updated by Nigel Kersten.

Assignee changed from Nigel Kersten to James Turnbull

James, can you merge into 2.7.x as well please?
----------------------------------------
Bug #6681: aptitude provider broken as aptitute doesnt support --force-yes
https://projects.puppetlabs.com/issues/6681

Author: R.I. Pienaar
Status: Available In Testing Branch
Priority: High
Assignee: James Turnbull
Category: package
Target version: 2.6.9
Affected Puppet version: 2.6.0
Keywords: 
Branch: https://github.com/jamtur01/puppet/tree/tickets/2.6.x/6681
Affected Dashboard version: 


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