Skip to content

Commit

Permalink
Revert "Allow for multiple package files to be passed to yum"
Browse files Browse the repository at this point in the history
This reverts commit 590fb1e.
  • Loading branch information
danielsdeleo committed May 9, 2014
1 parent 590fb1e commit 34a2e6e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/chef/provider/package/yum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1066,11 +1066,9 @@ def load_current_resource
@current_resource.package_name(@new_resource.package_name)

if @new_resource.source
@new_resource.source.split(' ').each do |sourcefile|
unless ::File.exists?(@new_resource.source)
raise Chef::Exceptions::Package, "Package #{@new_resource.name} not found: #{@new_resource.source}"
end
end
unless ::File.exists?(@new_resource.source)
raise Chef::Exceptions::Package, "Package #{@new_resource.name} not found: #{@new_resource.source}"
end

Chef::Log.debug("#{@new_resource} checking rpm status")
shell_out!("rpm -qp --queryformat '%{NAME} %{VERSION}-%{RELEASE}\n' #{@new_resource.source}", :timeout => Chef::Config[:yum_timeout]).stdout.each_line do |line|
Expand Down

0 comments on commit 34a2e6e

Please sign in to comment.