diff options
| author | Walter Lapchynski <wxl@ubuntu.com> | 2016-12-22 06:09:15 (GMT) |
|---|---|---|
| committer | Walter Lapchynski <wxl@ubuntu.com> | 2016-12-22 06:09:15 (GMT) |
| commit | 265051d5723d7e31fa9b709220a59b59805cd395 (patch) | |
| tree | 3f363cc065965096dcdd69fbd438670e26433850 | |
| parent | 45c2e6921b967de15b5c5834948700e1ee677d9f (diff) | |
check for duplicates for package-bd-relations
| -rwxr-xr-x | ka-update-metadata | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ka-update-metadata b/ka-update-metadata index faa9ed3..dc6034e 100755 --- a/ka-update-metadata +++ b/ka-update-metadata @@ -186,7 +186,8 @@ for src_pkg in build_depends_map: bd_relations_map[src_pkg] = [] for bd_binpkg in build_depends_map[src_pkg]: if bd_binpkg in binpkg_to_srcpkg_map: - bd_relations_map[src_pkg].append(binpkg_to_srcpkg_map[bd_binpkg]) + if binpkg_to_srcpkg_map[bd_binpkg] not in bd_relations_map[src_pkg]: + bd_relations_map[src_pkg].append(binpkg_to_srcpkg_map[bd_binpkg]) #Dump the (dev package name -> version) map to a json file overrides_file = releasetype + '-' + dist + "-overrides.json" |
