# File lib/puppet/provider/package/urpmi.rb, line 19 19: def install 20: should = @resource.should(:ensure) 21: self.debug "Ensuring => #{should}" 22: wanted = @resource[:name] 23: 24: # XXX: We don't actually deal with epochs here. 25: case should 26: when true, false, Symbol 27: # pass 28: else 29: # Add the package version 30: wanted += "-%s" % should 31: end 32: 33: output = urpmi "--auto", wanted 34: 35: unless self.query 36: raise Puppet::Error.new( 37: "Could not find package %s" % self.name 38: ) 39: end 40: end