From b60a4134683e6fb9f325fa6d190ef418c87812c4 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Tue, 10 May 2016 18:56:25 +0300 Subject: Fix `luarocks list --outdated` Compare latest available version with latest installed version, not with lexicographically smallest installed version. --- src/luarocks/list.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/list.lua b/src/luarocks/list.lua index 99868028..b517d182 100644 --- a/src/luarocks/list.lua +++ b/src/luarocks/list.lua @@ -32,7 +32,7 @@ local function check_outdated(trees, query) local latest_installed local latest_available, latest_available_repo - for version, _ in util.sortedpairs(versions) do + for version, _ in util.sortedpairs(versions, deps.compare_versions) do latest_installed = version break end -- cgit v1.2.3-55-g6feb