diff options
| author | Jack Nagel | 2014-04-25 18:58:16 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-04-25 18:58:16 -0500 | 
| commit | 35fb78a1c82b6ca3f8cbfd63a8ba4e5d70fdb3ae (patch) | |
| tree | e6b1f24f64f202d02811ffff26ebf8581f1d71ca /Library/Homebrew/formulary.rb | |
| parent | 52988fb6350c351323cc77e99577eca9bf955e57 (diff) | |
| download | homebrew-35fb78a1c82b6ca3f8cbfd63a8ba4e5d70fdb3ae.tar.bz2 | |
Yield absolute paths from find_formula
Diffstat (limited to 'Library/Homebrew/formulary.rb')
| -rw-r--r-- | Library/Homebrew/formulary.rb | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index bde6188d6..ec4693785 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -163,9 +163,9 @@ class Formulary        path = tap.join("#{name}.rb")        if tap.directory? -        tap.find_formula do |child| -          if child.basename(".rb").to_s == name -            path = tap.join(child) +        tap.find_formula do |file| +          if file.basename(".rb").to_s == name +            path = file            end          end        end  | 
