# File lib/puppet/provider/package/portupgrade.rb, line 84
 84:     def install
 85:       Puppet.debug "portupgrade.install() - Installation call on #{@resource[:name]}"
 86:       # -M: yes, we're a batch, so don't ask any questions
 87:         cmdline = ["-M BATCH=yes", @resource[:name]]
 88: 
 89:     #         FIXME: it's possible that portinstall prompts for data so locks up.
 90:     begin
 91:       output = portinstall(*cmdline)
 92:         rescue Puppet::ExecutionFailure
 93:           raise Puppet::Error.new(output)
 94:         end
 95: 
 96:         if output =~ /\*\* No such /
 97:           raise Puppet::ExecutionFailure, "Could not find package #{@resource[:name]}"
 98:         end
 99: 
100:         # No return code required, so do nil to be clean
101:         return nil
102:     end