From f2f45320a853e77be006f712bb3f6dc37d7a6bfe Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Sun, 6 Oct 2019 19:29:23 +0200 Subject: [PATCH] Don't fail if faux-packages have multiple provides entries --- britney.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/britney.py b/britney.py index 25f26a1..89778bc 100755 --- a/britney.py +++ b/britney.py @@ -577,6 +577,11 @@ class Britney(object): src_data.binaries.add(pkg_id) target_suite.binaries[arch][pkg_name] = bin_data pri_source_suite.binaries[arch][pkg_name] = bin_data + + # register provided packages with the target suite provides table + for provided_pkg, provided_version, _ in bin_data.provides: + target_suite.provides_table[arch][provided_pkg].add((pkg_name, provided_version)) + self.all_binaries[pkg_id] = bin_data def _load_constraints(self, constraints_file):