Merge pull request #2721 from MikeMcQuaid/search-no-exclude-caskroom
search: don’t exclude Caskroom results even if tapped.
This commit is contained in:
		
						commit
						d596c95584
					
				@ -107,7 +107,7 @@ module Homebrew
 | 
			
		||||
      dirname, filename = File.split(match["path"])
 | 
			
		||||
      next unless valid_dirnames.include?(dirname)
 | 
			
		||||
      tap = Tap.fetch(match["repository"]["full_name"])
 | 
			
		||||
      next if tap.installed?
 | 
			
		||||
      next if tap.installed? && match["repository"]["owner"]["login"] != "caskroom"
 | 
			
		||||
      "#{tap.name}/#{File.basename(filename, ".rb")}"
 | 
			
		||||
    end.compact
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user