install, update: AlreadyTappedError never raised.

This commit is contained in:
Mike McQuaid 2014-01-03 21:51:42 +00:00
parent 95e6a634b4
commit 4dd6f0cb4c
2 changed files with 2 additions and 8 deletions

View File

@ -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?

View File

@ -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?