#####################################################
-def remove_duplicate_versions(versions, packages):
+def remove_duplicate_versions(versions, packages, session):
""" Per-suite&pkg&arch: resolve duplicate versions """
# Sort versions into descending order
versions.sort(version_cmp)
delete_col = "bin"
# Remove all but the highest
delete_packages(dominated_versions, pkg, arch, suite,
- dominant_version, delete_table, delete_col, packages)
+ dominant_version, delete_table, delete_col, packages, session)
return [dominant_versions]
################################################################################
for arch in d[suite][pkg].keys():
versions = d[suite][pkg][arch]
if len(versions) > 1:
- d[suite][pkg][arch] = remove_duplicate_versions(versions, packages)
+ d[suite][pkg][arch] = remove_duplicate_versions(versions, packages, session)
# Arch: all -> any and vice versa
for suite in d.keys():