diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2010-11-02 20:46:33 -0200 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2010-11-02 20:46:33 -0200 |
| commit | e0e5c21e5b374927cb3b015eaad34e2c804eb091 (patch) | |
| tree | c9beb700e09a5761760b16594e95c9bda2b2e285 /src | |
| parent | 04d2aa2f9d81cb48875267437858bdf22eec759b (diff) | |
| download | luarocks-e0e5c21e5b374927cb3b015eaad34e2c804eb091.tar.gz luarocks-e0e5c21e5b374927cb3b015eaad34e2c804eb091.tar.bz2 luarocks-e0e5c21e5b374927cb3b015eaad34e2c804eb091.zip | |
fix for 'show' version selection by Steve Donovan
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/show.lua | 2 |
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 | ||
