# File lib/puppet/provider/package/ports.rb, line 18 18: def install 19: # -N: install if the package is missing, otherwise upgrade 20: # -M: yes, we're a batch, so don't ask any questions 21: cmd = %w{-N -M BATCH=yes} << @resource[:name] 22: 23: output = portupgrade(*cmd) 24: if output =~ /\*\* No such / 25: raise Puppet::ExecutionFailure, "Could not find package %s" % @resource[:name] 26: end 27: end