linkage: load formula from rack
This is to avoid TapFormulaAmbiguityError. We should load formula based on what we installed, rather than just name.
This commit is contained in:
		
							parent
							
								
									da34fba151
								
							
						
					
					
						commit
						684c44f356
					
				@ -67,7 +67,7 @@ module Homebrew
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      begin
 | 
			
		||||
        f = Formula[keg.name]
 | 
			
		||||
        f = Formulary.from_rack(keg.rack)
 | 
			
		||||
        @undeclared_deps = @brewed_dylibs.keys - f.deps.map(&:name)
 | 
			
		||||
        @undeclared_deps -= [f.name]
 | 
			
		||||
      rescue FormulaUnavailableError
 | 
			
		||||
@ -122,4 +122,4 @@ module Homebrew
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user