diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-10-11 20:27:29 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-10-11 20:27:29 -0300 |
commit | c0a59c50fff8455bfa5a094146a5823570ba42b5 (patch) | |
tree | 56c847d23789678e4b075cc5ede4323abc5324a8 | |
parent | ee42f7491734866e6898a0ba4ac232a776027cc2 (diff) | |
download | luarocks-c0a59c50fff8455bfa5a094146a5823570ba42b5.tar.gz luarocks-c0a59c50fff8455bfa5a094146a5823570ba42b5.tar.bz2 luarocks-c0a59c50fff8455bfa5a094146a5823570ba42b5.zip |
minor fix!
-rw-r--r-- | src/luarocks/write_rockspec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/write_rockspec.lua b/src/luarocks/write_rockspec.lua index db0bcd44..68547cdf 100644 --- a/src/luarocks/write_rockspec.lua +++ b/src/luarocks/write_rockspec.lua | |||
@@ -180,9 +180,9 @@ function run(...) | |||
180 | if name and not version then | 180 | if name and not version then |
181 | local protocol, path = dir.split_url(name) | 181 | local protocol, path = dir.split_url(name) |
182 | if not fetch.is_basic_protocol(protocol) then | 182 | if not fetch.is_basic_protocol(protocol) then |
183 | name = dir.base_name(name):gsub("%.[^.]+$", "") | ||
184 | version = "scm" | ||
185 | local_dir = name | 183 | local_dir = name |
184 | version = "scm" | ||
185 | name = dir.base_name(name):gsub("%.[^.]+$", "") | ||
186 | else | 186 | else |
187 | return nil, "Missing name and version arguments. "..util.see_help("write_rockspec") | 187 | return nil, "Missing name and version arguments. "..util.see_help("write_rockspec") |
188 | end | 188 | end |