aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@NewMachine.localdomain>2010-05-17 16:56:07 -0300
committerHisham Muhammad <hisham@NewMachine.localdomain>2010-05-17 16:56:07 -0300
commit7cc7c79a297b2265201ac58c1ea3de02b94e9668 (patch)
tree9c88f6a2d9512f674e1a89c4f0d632216d56e947
parent85dac7d8a73e873eb1e126e5c05cdfe03ce45d76 (diff)
downloadluarocks-7cc7c79a297b2265201ac58c1ea3de02b94e9668.tar.gz
luarocks-7cc7c79a297b2265201ac58c1ea3de02b94e9668.tar.bz2
luarocks-7cc7c79a297b2265201ac58c1ea3de02b94e9668.zip
fixes bug reported in github #1 - "source.tag does not do anything with Git fetcher"
Diffstat (limited to '')
-rw-r--r--src/luarocks/fetch.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua
index 3c2224f5..25add66a 100644
--- a/src/luarocks/fetch.lua
+++ b/src/luarocks/fetch.lua
@@ -162,10 +162,8 @@ function load_local_rockspec(filename)
162 rockspec.source.protocol, rockspec.source.pathname = protocol, pathname 162 rockspec.source.protocol, rockspec.source.pathname = protocol, pathname
163 163
164 -- Temporary compatibility 164 -- Temporary compatibility
165 if not rockspec.source.module then 165 if not rockspec.source.cvs_module then rockspec.source.module = rockspec.source.cvs_module end
166 rockspec.source.module = rockspec.source.cvs_module 166 if not rockspec.source.cvs_tag then rockspec.source.tag = rockspec.source.cvs_tag end
167 rockspec.source.tag = rockspec.source.cvs_tag
168 end
169 167
170 local name_version = rockspec.package:lower() .. "-" .. rockspec.version 168 local name_version = rockspec.package:lower() .. "-" .. rockspec.version
171 if basename ~= "rockspec" and basename ~= name_version .. ".rockspec" then 169 if basename ~= "rockspec" and basename ~= name_version .. ".rockspec" then