aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorXu Cheng2015-07-21 22:14:04 +0800
committerXu Cheng2015-07-22 15:12:31 +0800
commit33befcf312e12496fc1a6b0df531f03d97dfe954 (patch)
tree0b057d1e18980f67ac10c43a44feaa296af726b3 /Library/Homebrew/formula.rb
parent60600c824cb07b36bc74b7a7f363069f8c29a8ca (diff)
downloadbrew-33befcf312e12496fc1a6b0df531f03d97dfe954.tar.bz2
tests: fix patching test for no-compat mode
Closes Homebrew/homebrew#41977. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 3a9f37f96..be1fdf532 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -941,7 +941,7 @@ class Formula
end
def prepare_patches
- active_spec.add_legacy_patches(patches)
+ active_spec.add_legacy_patches(patches) if respond_to?(:patches)
patchlist.grep(DATAPatch) { |p| p.path = path }