diff options
| author | Martin Kühl | 2011-03-27 22:14:16 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-09 09:43:48 -0700 |
| commit | dafe97b047cece6d12c5fa4302ae5966bbe12939 (patch) | |
| tree | 97fd3f3be0ea867336646f59a112ee1c7903cd02 /Library/Homebrew/cmd/create.rb | |
| parent | 8e0c96c45de35f25c79957763de04235e7e5d48d (diff) | |
| download | brew-dafe97b047cece6d12c5fa4302ae5966bbe12939.tar.bz2 | |
Fix formula paths for manually specified names.
When the name of a new formula can't be autodetected, it defaults to the empty
string. When it then gets read from user input later on, the new name is used
but the formula path, based on the name, stays empty.
This change sets the path after a new name was read.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd/create.rb')
| -rw-r--r-- | Library/Homebrew/cmd/create.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb index d69ec2aba..d92dc0b00 100644 --- a/Library/Homebrew/cmd/create.rb +++ b/Library/Homebrew/cmd/create.rb @@ -24,6 +24,7 @@ module Homebrew extend self path = Pathname.new url print "Formula name [#{path.stem}]: " fc.name = __gets || path.stem + fc.path = Formula.path fc.name end unless ARGV.force? @@ -58,7 +59,7 @@ class FormulaCreator attr :url attr :md5 attr :name, true - attr :path + attr :path, true attr :mode, true def url= url |
