Don't blacklist tapped-dupes
If a formula is in Formula due to tapping or otherwise, don't prohibit installation. Really we should make the blacklist *really* stuff that should be blacklisted and then if it is available still require a --force. But currently with okay stuff like vim in there, and libxml2 being both blacklisted *and* in mxcl/master, we are screwing ourselves. TL;DR we should do some work on this component. Fixes Homebrew/homebrew#13234.
This commit is contained in:
		
							parent
							
								
									97acbe8f66
								
							
						
					
					
						commit
						0152b34839
					
				@ -7,8 +7,11 @@ module Homebrew extend self
 | 
				
			|||||||
    raise FormulaUnspecifiedError if ARGV.named.empty?
 | 
					    raise FormulaUnspecifiedError if ARGV.named.empty?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ARGV.named.each do |name|
 | 
					    ARGV.named.each do |name|
 | 
				
			||||||
 | 
					      # if a formula has been tapped ignore the blacklisting
 | 
				
			||||||
 | 
					      if not File.file? HOMEBREW_REPOSITORY/"Library/Formula/#{name}.rb"
 | 
				
			||||||
        msg = blacklisted? name
 | 
					        msg = blacklisted? name
 | 
				
			||||||
        raise "No available formula for #{name}\n#{msg}" if msg
 | 
					        raise "No available formula for #{name}\n#{msg}" if msg
 | 
				
			||||||
 | 
					      end
 | 
				
			||||||
    end unless ARGV.force?
 | 
					    end unless ARGV.force?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if Process.uid.zero? and not File.stat(HOMEBREW_BREW_FILE).uid.zero?
 | 
					    if Process.uid.zero? and not File.stat(HOMEBREW_BREW_FILE).uid.zero?
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user