Coverage for src/debputy/commands/debputy_cmd/dc_util.py: 27%
7 statements
« prev ^ index » next coverage.py v7.2.7, created at 2024-04-07 12:14 +0200
« prev ^ index » next coverage.py v7.2.7, created at 2024-04-07 12:14 +0200
1from typing import Dict, Iterable
3from debputy.packager_provided_files import (
4 PerPackagePackagerProvidedResult,
5 PackagerProvidedFile,
6)
9def flatten_ppfs(
10 all_ppfs: Dict[str, PerPackagePackagerProvidedResult]
11) -> Iterable[PackagerProvidedFile]:
12 for matched_ppf in all_ppfs.values():
13 yield from matched_ppf.auto_installable
14 for reserved_ppfs in matched_ppf.reserved_only.values():
15 yield from reserved_ppfs