aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2010-11-02 20:46:33 -0200
committerHisham Muhammad <hisham@gobolinux.org>2010-11-02 20:46:33 -0200
commite0e5c21e5b374927cb3b015eaad34e2c804eb091 (patch)
treec9beb700e09a5761760b16594e95c9bda2b2e285
parent04d2aa2f9d81cb48875267437858bdf22eec759b (diff)
downloadluarocks-e0e5c21e5b374927cb3b015eaad34e2c804eb091.tar.gz
luarocks-e0e5c21e5b374927cb3b015eaad34e2c804eb091.tar.bz2
luarocks-e0e5c21e5b374927cb3b015eaad34e2c804eb091.zip
fix for 'show' version selection by Steve Donovan
-rw-r--r--src/luarocks/show.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/show.lua b/src/luarocks/show.lua
index 82568d13..34837c19 100644
--- a/src/luarocks/show.lua
+++ b/src/luarocks/show.lua
@@ -83,7 +83,7 @@ function run(...)
83 --question: what do we do about multiple versions? This should 83 --question: what do we do about multiple versions? This should
84 --give us the latest version on the last repo (which is usually the global one) 84 --give us the latest version on the last repo (which is usually the global one)
85 for vs, repos in util.sortedpairs(versions, deps.compare_versions) do 85 for vs, repos in util.sortedpairs(versions, deps.compare_versions) do
86 version = vs 86 if not version then version = vs end
87 for _, rp in ipairs(repos) do repo_url = rp.repo end 87 for _, rp in ipairs(repos) do repo_url = rp.repo end
88 end 88 end
89 89