diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-08-20 13:25:21 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-08-20 13:25:21 +0000 |
commit | c137a146f4f58690f2697231013c10608f4050a1 (patch) | |
tree | 2442372ca767fbd0e09c4befb8769a543b5b8044 /apk-model.lua | |
parent | 59dd8941eea57d0c738503beaf92fb6f8b23e298 (diff) | |
download | acf-apk-tools-c137a146f4f58690f2697231013c10608f4050a1.tar.bz2 acf-apk-tools-c137a146f4f58690f2697231013c10608f4050a1.tar.xz |
Fixed bug when more than one available version of package.
Diffstat (limited to 'apk-model.lua')
-rw-r--r-- | apk-model.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apk-model.lua b/apk-model.lua index 4b8d703..69aeae8 100644 --- a/apk-model.lua +++ b/apk-model.lua @@ -72,7 +72,7 @@ local repository = function() install_cache = false for line in f:lines() do local name, ver = string.match(line, "(.*)%-(%d+.*)") - if name then + if name and (not repo[name] or repo[name].version < ver) then repo[name] = {} repo[name].version = ver end |