diff options
| author | Jack Nagel | 2015-01-22 17:03:54 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-01-22 17:03:54 -0500 |
| commit | 7c575130a590719e8239f7d7d7613b58f2ef8505 (patch) | |
| tree | a9c21455d82ad33c52b34a1004129a7e97c70027 /Library | |
| parent | 9ea0f7bc88a684fc08720bbd711a75df6a333f12 (diff) | |
| download | homebrew-7c575130a590719e8239f7d7d7613b58f2ef8505.tar.bz2 | |
Use formula patches accessor
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index f953c087d..2fe8a9eb8 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 |
