diff options
author | Leo P <junk@slact.net> | 2019-04-04 17:02:16 -0400 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-04-16 15:13:41 -0300 |
commit | 6000c9a691356dc56c620299a560bba7c47ed221 (patch) | |
tree | f218d13175170d1c187c50774ca2d9925f4fc338 /src | |
parent | beb38fee0086a53e075f2db32e2321ba4c76e71b (diff) | |
download | luarocks-6000c9a691356dc56c620299a560bba7c47ed221.tar.gz luarocks-6000c9a691356dc56c620299a560bba7c47ed221.tar.bz2 luarocks-6000c9a691356dc56c620299a560bba7c47ed221.zip |
fix: correctly print current platforms
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/core/cfg.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index acda1e46..fd74ff98 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua | |||
@@ -816,7 +816,12 @@ function cfg.init(detected, warning) | |||
816 | end | 816 | end |
817 | 817 | ||
818 | function cfg.print_platforms() | 818 | function cfg.print_platforms() |
819 | return table.concat(platforms, ", ") | 819 | local platform_keys = {} |
820 | for k,_ in pairs(platforms) do | ||
821 | table.insert(platform_keys, k) | ||
822 | end | ||
823 | table.sort(platform_keys) | ||
824 | return table.concat(platform_keys, ", ") | ||
820 | end | 825 | end |
821 | 826 | ||
822 | return true | 827 | return true |