Skip to content

Commit

Permalink
COOK-825: avoid trying to install RPM if we didn't download it
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamont Granquist authored and jtimberman committed Dec 8, 2011
1 parent 031d9a2 commit 9d0c538
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions recipes/epel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@

rpm_package "epel-release" do
source "#{Chef::Config[:file_cache_path]}/epel-release-#{epel}.noarch.rpm"
only_if {::File.exists?("#{Chef::Config[:file_cache_path]}/epel-release-#{epel}.noarch.rpm")}
end

0 comments on commit 9d0c538

Please sign in to comment.