aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-11 20:43:31 -0700
committerAdam Vandenberg2010-08-11 20:43:31 -0700
commit64cf554a7bf5e3f4212ebde7295df301241f679c (patch)
tree50ba58f6b63fe78db8c6a45bef80f8f3c75de5b9 /bin
parent7d7b5cfab0924ebce8f44b4688c4e9f4939faf1a (diff)
downloadbrew-64cf554a7bf5e3f4212ebde7295df301241f679c.tar.bz2
Fix uses/deps for Leopard
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/brew b/bin/brew
index 703fc99d1..c2b862e48 100755
--- a/bin/brew
+++ b/bin/brew
@@ -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'