diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2010-09-16 12:42:17 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2010-09-16 12:42:17 -0300 |
commit | 66b3ef504e34548211f16d4d9f7f6bf35d277743 (patch) | |
tree | 4a5f350ea6c32e926cb658bc8dfe1d4f747227f2 /src | |
parent | 0501be3433093732492f9ce3be399abda1855fde (diff) | |
download | luarocks-66b3ef504e34548211f16d4d9f7f6bf35d277743.tar.gz luarocks-66b3ef504e34548211f16d4d9f7f6bf35d277743.tar.bz2 luarocks-66b3ef504e34548211f16d4d9f7f6bf35d277743.zip |
Oops -- fix URL display
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/index.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/index.lua b/src/luarocks/index.lua index fa735592..18afd797 100644 --- a/src/luarocks/index.lua +++ b/src/luarocks/index.lua | |||
@@ -104,9 +104,9 @@ function make_index(repo) | |||
104 | if item.arch == 'rockspec' then | 104 | if item.arch == 'rockspec' then |
105 | local rs = ("%s-%s.rockspec"):format(package, version) | 105 | local rs = ("%s-%s.rockspec"):format(package, version) |
106 | if not latest_rockspec then latest_rockspec = rs end | 106 | if not latest_rockspec then latest_rockspec = rs end |
107 | output = output:gsub("$url", rs) | 107 | link = link:gsub("$url", rs) |
108 | else | 108 | else |
109 | output = output:gsub("$url", ("%s-%s.%s.rock"):format(package, version, item.arch)) | 109 | link = link:gsub("$url", ("%s-%s.%s.rock"):format(package, version, item.arch)) |
110 | end | 110 | end |
111 | versions[item.arch] = link | 111 | versions[item.arch] = link |
112 | table.insert(versions_order, item.arch) | 112 | table.insert(versions_order, item.arch) |