From 999130ccd2eaee7662e5983308b28db1d71a2cf6 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Fri, 5 Jan 2018 16:19:41 +0100 Subject: fix logic inversion in package selection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want the package with the highest version, not the lowest. Reported-By: Uwe Kleine-König --- multiarchimport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiarchimport.py b/multiarchimport.py index 76c4878..4abfc7e 100755 --- a/multiarchimport.py +++ b/multiarchimport.py @@ -73,7 +73,7 @@ def process_list(mirror, architecture): except KeyError: pass else: - if version_compare(otherver, pkg["version"]) < 0: + if version_compare(otherver, pkg["version"]) > 0: continue pkgs[pkg["package"]] = gather_pkgmeta(pkg) return pkgs -- cgit v1.2.3