diff options
| author | Adam Vandenberg | 2011-03-12 16:37:56 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 16:37:56 -0800 |
| commit | d297f1b7a90e2da7c5d17eaf435acaa9c50227f6 (patch) | |
| tree | b3a7aee809fb692b91a4ad5a7dbd54291aff3006 /Library | |
| parent | 16eba4d5c18757c34cbe4823e252405222391b8d (diff) | |
| download | homebrew-d297f1b7a90e2da7c5d17eaf435acaa9c50227f6.tar.bz2 | |
Allow 'brew install' on relative paths
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index c2bef22c2..a7cea5cf8 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -333,10 +333,10 @@ class Formula install_type = :from_url else # Check if this is a name or pathname - path = Pathname.new(name) - if path.absolute? - # For absolute paths, just require the path + if name.include? "/" + # For paths, just require the path require name + path = Pathname.new(name) name = path.stem install_type = :from_path target_file = path.to_s |
