missing: call Formula#missing_dependencies directly
This commit is contained in:
		
							parent
							
								
									0cd983487c
								
							
						
					
					
						commit
						422f38b945
					
				@ -18,8 +18,13 @@ module Homebrew
 | 
				
			|||||||
      ARGV.resolved_formulae
 | 
					      ARGV.resolved_formulae
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Diagnostic.missing_deps(ff, ARGV.value("hide")) do |name, missing|
 | 
					    hide = (ARGV.value("hide") || "").split(",")
 | 
				
			||||||
      print "#{name}: " if ff.size > 1
 | 
					
 | 
				
			||||||
 | 
					    ff.each do |f|
 | 
				
			||||||
 | 
					      missing = f.missing_dependencies(hide: hide)
 | 
				
			||||||
 | 
					      next if missing.empty?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      print "#{f}: " if ff.size > 1
 | 
				
			||||||
      puts missing.join(" ")
 | 
					      puts missing.join(" ")
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user