From 797820946922d8c043f320adeb4cbaa88abbfcd4 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 22 Jan 2015 17:03:54 -0500 Subject: [PATCH] Use formula patches accessor --- Library/Homebrew/formula.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index f953c087db..2fe8a9eb8b 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -387,7 +387,7 @@ class Formula def patch ohai "Patching" - active_spec.patches.each(&:apply) + patchlist.each(&:apply) end # yields self with current working directory set to the uncompressed tarball @@ -761,9 +761,9 @@ class Formula active_spec.add_legacy_patches(patches) return if patchlist.empty? - active_spec.patches.grep(DATAPatch) { |p| p.path = path } + patchlist.grep(DATAPatch) { |p| p.path = path } - active_spec.patches.select(&:external?).each do |patch| + patchlist.select(&:external?).each do |patch| patch.verify_download_integrity(patch.fetch) end end