update: check if Cellar exists instead of factory.

Fixes Homebrew/homebrew#23881.
This commit is contained in:
Mike McQuaid 2013-11-01 23:23:08 -07:00
parent a0a341c297
commit e24bcba00a

View File

@ -58,7 +58,7 @@ module Homebrew extend self
# automatically tap any migrated formulae's new tap
report.select_formula(:D).each do |f|
next unless Formula.factory(f).installed?
next unless (HOMEBREW_CELLAR/f).exist?
tap_user, tap_repo = TAP_MIGRATIONS[f].split '/'
begin
install_tap tap_user, tap_repo