install, update: AlreadyTappedError never raised.
This commit is contained in:
parent
95e6a634b4
commit
4dd6f0cb4c
@ -31,10 +31,7 @@ module Homebrew extend self
|
|||||||
end
|
end
|
||||||
if not File.exist? name and name =~ HOMEBREW_TAP_FORMULA_REGEX then
|
if not File.exist? name and name =~ HOMEBREW_TAP_FORMULA_REGEX then
|
||||||
require 'cmd/tap'
|
require 'cmd/tap'
|
||||||
begin
|
install_tap $1, $2
|
||||||
install_tap $1, $2
|
|
||||||
rescue AlreadyTappedError
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end unless ARGV.force?
|
end unless ARGV.force?
|
||||||
|
|
||||||
|
|||||||
@ -61,10 +61,7 @@ module Homebrew extend self
|
|||||||
migration = TAP_MIGRATIONS[f]
|
migration = TAP_MIGRATIONS[f]
|
||||||
next unless migration
|
next unless migration
|
||||||
tap_user, tap_repo = migration.split '/'
|
tap_user, tap_repo = migration.split '/'
|
||||||
begin
|
install_tap tap_user, tap_repo
|
||||||
install_tap tap_user, tap_repo
|
|
||||||
rescue AlreadyTappedError
|
|
||||||
end
|
|
||||||
end if load_tap_migrations
|
end if load_tap_migrations
|
||||||
|
|
||||||
if report.empty?
|
if report.empty?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user