Skip to content
Snippets Groups Projects
Commit 64cf554a authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Fix uses/deps for Leopard

parent 7d7b5cfa
No related branches found
No related tags found
No related merge requests found
......@@ -258,14 +258,14 @@ begin
# For each formula given, show which other formulas depend on it.
# We only go one level up, ie. direct dependencies.
when 'uses'
puts *ARGV.formulae.map{ |f| Formula.all.select{ |ff| ff.deps.include? f.name }.map(&:name) }.flatten.uniq.sort
puts *ARGV.formulae.map{ |f| Formula.all.select{ |ff| ff.deps.include? f.name }.map{|f| f.name} }.flatten.uniq.sort
when 'deps'
require 'formula_installer'
if ARGV.include?("-1") or ARGV.include?("--1")
puts *ARGV.formulae.map{ |f| f.deps or [] }.flatten.uniq.sort
else
puts *ARGV.formulae.map{ |f| FormulaInstaller.expand_deps(f).map(&:name) }.flatten.uniq.sort
puts *ARGV.formulae.map{ |f| FormulaInstaller.expand_deps(f).map{|f| f.name} }.flatten.uniq.sort
end
when 'cat'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment