diff options
Diffstat (limited to 'src/debputy/commands/debputy_cmd/dc_util.py')
-rw-r--r-- | src/debputy/commands/debputy_cmd/dc_util.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/debputy/commands/debputy_cmd/dc_util.py b/src/debputy/commands/debputy_cmd/dc_util.py new file mode 100644 index 0000000..f54a4d1 --- /dev/null +++ b/src/debputy/commands/debputy_cmd/dc_util.py @@ -0,0 +1,15 @@ +from typing import Dict, Iterable + +from debputy.packager_provided_files import ( + PerPackagePackagerProvidedResult, + PackagerProvidedFile, +) + + +def flatten_ppfs( + all_ppfs: Dict[str, PerPackagePackagerProvidedResult] +) -> Iterable[PackagerProvidedFile]: + for matched_ppf in all_ppfs.values(): + yield from matched_ppf.auto_installable + for reserved_ppfs in matched_ppf.reserved_only.values(): + yield from reserved_ppfs |