diff options
author | Helmut Grohne <helmut@subdivi.de> | 2018-01-05 16:19:41 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2018-01-05 16:19:41 +0100 |
commit | 999130ccd2eaee7662e5983308b28db1d71a2cf6 (patch) | |
tree | 0a998aeeb87b69c8b56ffdd346eeed70a9bdc7dd /multiarchimport.py | |
parent | f198e8eeafe59228e2edfd3823aa12e8cbafdf01 (diff) | |
download | debian-dedup-999130ccd2eaee7662e5983308b28db1d71a2cf6.tar.gz |
fix logic inversion in package selection
We want the package with the highest version, not the lowest.
Reported-By: Uwe Kleine-König <ukleinek@debian.org>
Diffstat (limited to 'multiarchimport.py')
-rwxr-xr-x | multiarchimport.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |