diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2011-09-16 13:01:10 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-09-16 13:01:10 -0300 |
commit | 82a914d27f8ae81966e2d1b15c922fd0b964e4ed (patch) | |
tree | bb1c921c541a073a52f2907f0f29601f6848684c | |
parent | 832e6aa16d5977e57ca73064f8377259801ce160 (diff) | |
download | luarocks-82a914d27f8ae81966e2d1b15c922fd0b964e4ed.tar.gz luarocks-82a914d27f8ae81966e2d1b15c922fd0b964e4ed.tar.bz2 luarocks-82a914d27f8ae81966e2d1b15c922fd0b964e4ed.zip |
fix inverted test, which was overwriting the value of rockspec.source.tag
-rw-r--r-- | src/luarocks/fetch.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua index 2ea2c906..c5983797 100644 --- a/src/luarocks/fetch.lua +++ b/src/luarocks/fetch.lua | |||
@@ -162,8 +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.cvs_module then rockspec.source.module = rockspec.source.cvs_module end | 165 | if rockspec.source.cvs_module then rockspec.source.module = rockspec.source.cvs_module end |
166 | if not rockspec.source.cvs_tag then rockspec.source.tag = rockspec.source.cvs_tag end | 166 | if rockspec.source.cvs_tag then rockspec.source.tag = rockspec.source.cvs_tag end |
167 | 167 | ||
168 | local name_version = rockspec.package:lower() .. "-" .. rockspec.version | 168 | local name_version = rockspec.package:lower() .. "-" .. rockspec.version |
169 | if basename ~= "rockspec" and basename ~= name_version .. ".rockspec" then | 169 | if basename ~= "rockspec" and basename ~= name_version .. ".rockspec" then |