pull: run tap --repair when pulling tap formulae.

This should allow formulae to be found after they are pulled.

Closes Homebrew/homebrew#37043.
This commit is contained in:
Mike McQuaid 2015-02-22 15:59:11 +00:00
parent a9332cfeb4
commit 04f89a94ba

View File

@ -94,6 +94,7 @@ module Homebrew
changed_formulae = [] changed_formulae = []
if tap_dir if tap_dir
safe_system "brew", "tap", "--repair"
formula_dir = %w[Formula HomebrewFormula].find { |d| tap_dir.join(d).directory? } || "" formula_dir = %w[Formula HomebrewFormula].find { |d| tap_dir.join(d).directory? } || ""
else else
formula_dir = "Library/Formula" formula_dir = "Library/Formula"