aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2012-03-16 21:31:18 +0000
committerMax Howell2012-03-16 21:31:59 +0000
commitee73c30aa59c92e8d3f98eb60ad2f0d8caa39970 (patch)
tree3c2487891c33418aebe8d7eb54bc0b46fdaa4a2b
parenta2e84e5e579d8187f08e544932846a53de8a8b36 (diff)
downloadbrew-ee73c30aa59c92e8d3f98eb60ad2f0d8caa39970.tar.bz2
Tap more than one formula from taps other than alt
Whoops.
-rw-r--r--Library/Homebrew/extend/pathname.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 8465408fe..1ccbff51c 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -339,10 +339,12 @@ class Pathname
end
[self/:Formula, self/:HomebrewFormula, self].each do |d|
- d.children.map{ |child| child.relative_path_from(self) }.each do |pn|
- yield pn if pn.to_s =~ /.rb$/
+ if d.exist?
+ d.children.map{ |child| child.relative_path_from(self) }.each do |pn|
+ yield pn if pn.to_s =~ /.rb$/
+ end
break
- end if d.exist?
+ end
end
end
end