Issue #8921 has been updated by Kiril Varnakov.

But not for me, if you define other directory in pkgtools.conf from default, it 
doesn't work, because in portupgrade.rb:

<pre>
    # Remove unwanted environment variables.
    %w{INTERACTIVE UNAME}.each do |var|
      if ENV.include?(var)
        ENV.delete(var)
        end
    end>
</pre>
----------------------------------------
Bug #8921: Provider portupgrade don't work with 'P' option when install port
https://projects.puppetlabs.com/issues/8921#change-62985

Author: Kiril Varnakov
Status: Needs More Information
Priority: Normal
Assignee: 
Category: provider
Target version: 2.7.x
Affected Puppet version: 2.6.7
Keywords: 
Branch: 


Hi. I don't understand, why options -P not intagrated to puppet, but if i add 
it to portupgrade.rb manualy, it does not work.
<pre>

--- portupgrade.rb      2011-08-11 11:02:55.000000000 +0400
+++ portupgrade.rb.patch        2011-08-11 10:48:32.000000000 +0400
@@ -84,7 +84,7 @@
     def install
       Puppet.debug "portupgrade.install() - Installation call on 
#{@resource[:name]}"
       # -M: yes, we're a batch, so don't ask any questions
-       cmdline = ["-P -M BATCH=yes", @resource[:name]]
+       cmdline = ["-M BATCH=yes", @resource[:name]]

     #         FIXME: it's possible that portinstall prompts for data so locks 
up.
     begin
</pre>

On puppet agent:

<pre>

debug: Puppet::Type::Package::ProviderPortupgrade: Executing 
'/usr/local/sbin/portinstall -P -M BATCH=yes security/sudo'
err: /Stage[main]/Sudo/Package[security/sudo]/ensure: change from absent to 
present failed:

</pre>


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