diff options
author | Peter Melnichenko <mpeterval@gmail.com> | 2016-05-10 18:56:25 +0300 |
---|---|---|
committer | Peter Melnichenko <mpeterval@gmail.com> | 2016-05-10 18:56:25 +0300 |
commit | b60a4134683e6fb9f325fa6d190ef418c87812c4 (patch) | |
tree | d06aeacfc66da87c69db96af3726b33de9b8a68a | |
parent | e4bae37cc36affe54ec011703f2e3515589948a4 (diff) | |
download | luarocks-b60a4134683e6fb9f325fa6d190ef418c87812c4.tar.gz luarocks-b60a4134683e6fb9f325fa6d190ef418c87812c4.tar.bz2 luarocks-b60a4134683e6fb9f325fa6d190ef418c87812c4.zip |
Fix `luarocks list --outdated`
Compare latest available version with latest installed version,
not with lexicographically smallest installed version.
-rw-r--r-- | src/luarocks/list.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
32 | local latest_installed | 32 | local latest_installed |
33 | local latest_available, latest_available_repo | 33 | local latest_available, latest_available_repo |
34 | 34 | ||
35 | for version, _ in util.sortedpairs(versions) do | 35 | for version, _ in util.sortedpairs(versions, deps.compare_versions) do |
36 | latest_installed = version | 36 | latest_installed = version |
37 | break | 37 | break |
38 | end | 38 | end |