diff options
| author | Misty De Meo | 2013-02-28 10:56:40 -0600 |
|---|---|---|
| committer | Misty De Meo | 2013-03-04 12:12:47 -0600 |
| commit | e714a47c10c35bffd8de2d9e703db9d8c9e6d0eb (patch) | |
| tree | bfe5e44bceefb6ab87d0f94f09a8d8d0b41b9af9 /Library | |
| parent | 5306ef08d61594d5ce4333e7a287a6a7ce0478c5 (diff) | |
| download | brew-e714a47c10c35bffd8de2d9e703db9d8c9e6d0eb.tar.bz2 | |
tap: adjust formula count for unsymlinked files
Relying on the output of `tapped` results in ignoring formulae which
already exist in core, with messages like "Tapped 0 formula" for
non-empty taps.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/tap.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/untap.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb index 06606cf9a..5bd37548f 100644 --- a/Library/Homebrew/cmd/tap.rb +++ b/Library/Homebrew/cmd/tap.rb @@ -28,8 +28,8 @@ module Homebrew extend self files = [] tapd.find_formula{ |file| files << tapd.basename.join(file) } - tapped = link_tap_formula(files) - puts "Tapped #{tapped} formula" + link_tap_formula(files) + puts "Tapped #{files.count} formula" # Figure out if this repo is private # curl will throw an exception if the repo is private (Github returns a 404) diff --git a/Library/Homebrew/cmd/untap.rb b/Library/Homebrew/cmd/untap.rb index 32b623277..abfa6df22 100644 --- a/Library/Homebrew/cmd/untap.rb +++ b/Library/Homebrew/cmd/untap.rb @@ -19,9 +19,9 @@ module Homebrew extend self files = [] tapd.find_formula{ |file| files << Pathname.new("#{user}-#{repo}").join(file) } - untapped = unlink_tap_formula(files) + unlink_tap_formula(files) rm_rf tapd - puts "Untapped #{untapped} formula" + puts "Untapped #{files.count} formula" end def unlink_tap_formula formulae |
