aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2015-01-22 17:04:38 -0500
committerJack Nagel2015-01-22 17:04:38 -0500
commit2804e0ed3b94403ca1f09ab9bbb1d03599b41528 (patch)
tree80f4075626c5be3379fe87547b34d6aa7b89ce3f /Library/Homebrew
parent797820946922d8c043f320adeb4cbaa88abbfcd4 (diff)
downloadbrew-2804e0ed3b94403ca1f09ab9bbb1d03599b41528.tar.bz2
Hide "Patching" message when there aren't any patches
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 2fe8a9eb8..91fae5fea 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -386,8 +386,10 @@ class Formula
end
def patch
- ohai "Patching"
- patchlist.each(&:apply)
+ unless patchlist.empty?
+ ohai "Patching"
+ patchlist.each(&:apply)
+ end
end
# yields self with current working directory set to the uncompressed tarball