diff options
| author | Max Howell | 2012-03-16 21:31:18 +0000 |
|---|---|---|
| committer | Max Howell | 2012-03-16 21:31:59 +0000 |
| commit | 6892247ce1267b7268fc41a0c4a7870f625d275e (patch) | |
| tree | bdac4a0fd81698f3463bc4916d44283034f0fe0a /Library | |
| parent | 97f620090bc30638d40089aa0f0a312910ebf0b9 (diff) | |
| download | homebrew-6892247ce1267b7268fc41a0c4a7870f625d275e.tar.bz2 | |
Tap more than one formula from taps other than alt
Whoops.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 8 |
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 |
