From e0e5c21e5b374927cb3b015eaad34e2c804eb091 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 2 Nov 2010 20:46:33 -0200 Subject: fix for 'show' version selection by Steve Donovan --- src/luarocks/show.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(...) --question: what do we do about multiple versions? This should --give us the latest version on the last repo (which is usually the global one) for vs, repos in util.sortedpairs(versions, deps.compare_versions) do - version = vs + if not version then version = vs end for _, rp in ipairs(repos) do repo_url = rp.repo end end -- cgit v1.2.3-55-g6feb