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.
This commit is contained in:
parent
5306ef08d6
commit
e714a47c10
@ -28,8 +28,8 @@ module Homebrew extend self
|
|||||||
|
|
||||||
files = []
|
files = []
|
||||||
tapd.find_formula{ |file| files << tapd.basename.join(file) }
|
tapd.find_formula{ |file| files << tapd.basename.join(file) }
|
||||||
tapped = link_tap_formula(files)
|
link_tap_formula(files)
|
||||||
puts "Tapped #{tapped} formula"
|
puts "Tapped #{files.count} formula"
|
||||||
|
|
||||||
# Figure out if this repo is private
|
# Figure out if this repo is private
|
||||||
# curl will throw an exception if the repo is private (Github returns a 404)
|
# curl will throw an exception if the repo is private (Github returns a 404)
|
||||||
|
@ -19,9 +19,9 @@ module Homebrew extend self
|
|||||||
|
|
||||||
files = []
|
files = []
|
||||||
tapd.find_formula{ |file| files << Pathname.new("#{user}-#{repo}").join(file) }
|
tapd.find_formula{ |file| files << Pathname.new("#{user}-#{repo}").join(file) }
|
||||||
untapped = unlink_tap_formula(files)
|
unlink_tap_formula(files)
|
||||||
rm_rf tapd
|
rm_rf tapd
|
||||||
puts "Untapped #{untapped} formula"
|
puts "Untapped #{files.count} formula"
|
||||||
end
|
end
|
||||||
|
|
||||||
def unlink_tap_formula formulae
|
def unlink_tap_formula formulae
|
||||||
|
Loading…
x
Reference in New Issue
Block a user