# File lib/puppet/provider/package/portupgrade.rb, line 209
209:     def uninstall
210:       Puppet.debug "portupgrade.uninstall() - called on #{@resource[:name]}"
211:       # Get full package name from port origin to uninstall with
212:       cmdline = ["-qO", @resource[:name]]
213:       begin
214:         output = portinfo(*cmdline)
215:         rescue Puppet::ExecutionFailure
216:           raise Puppet::Error.new(output)
217:         end
218: 
219:         if output =~ /^(\S+)/
220:         #         output matches, so uninstall it
221:                 portuninstall $1
222:       end
223: 
224:     end