package: Use package expressions in Packages component

- managed_packages() finds all possible packages that could be
  installed. This is used for the check in the action script.

- resolve() finds actual packages to be installed. This is used in
  setup, diagnose, and has_unavailable_packages.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy committed 2022-04-10 08:29:34 -04:00
1 parent 31a457029c
commit 45820fbdfa
3 files changed
+65 -16

No files matched your search

+1 -1
View File
@@ -131,7 +131,7 @@ def _assert_managed_packages(module, packages):
app = cls()
components = app.get_components_of_type(Packages)
for component in components:
managed_packages += component.packages
managed_packages += component.managed_packages()
for package in packages:
assert package in managed_packages