Issue #8921 has been updated by Kiril Varnakov.
FreeBSD 8.2-RELEASE-p1 - i386. I installed packages from local mashine and have already compilation packages. Manualy write: <pre> test002# /usr/local/sbin/portinstall -P -M BATCH=yes security/sudo [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 53 packages found (-1 +0) (...) done] [Gathering depends for security/sudo ..... done] ---> Checking for the latest package of 'security/sudo' ---> Found a package of 'security/sudo': /home/.FreeBSD/packages/All/sudo-1.8.1_5.tbz (sudo-1.8.1_5) ---> Installing 'sudo-1.8.1_5' from a package ---> Installing the new version via the package [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 54 packages found (-0 +1) . done] </pre> I tried to register in pkgtools.konf: <pre> PORTUPGRADE_ARGS = ENV ['PORTUPGRADE'] + '-P' </pre> but this is the same as the patch. ---------------------------------------- Bug #8921: Provider portupgrade don't work with 'P' option when install port https://projects.puppetlabs.com/issues/8921 Author: Kiril Varnakov Status: Needs More Information Priority: Normal Assignee: Category: provider Target version: 2.6.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.
