diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_patching.rb | 2 |
2 files changed, 2 insertions, 2 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 } diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb index 0917316dd..02c73ef8e 100644 --- a/Library/Homebrew/test/test_patching.rb +++ b/Library/Homebrew/test/test_patching.rb @@ -106,7 +106,7 @@ class PatchingTests < Homebrew::TestCase def test_patch_DATA_constant assert_patched formula("test", Pathname.new(__FILE__).expand_path) { def patches - Formula::DATA + :DATA end } end |
