To be installed packages are still listed for the current session

A user might still need to interact with a **to be installed** package.
But the current package list doesn't list that package anymore.

Introduced a `getPackagesToInstall()` method in the Uranium PackageManager
to circumvent this issue.

Contributes to CURA-8558
This commit is contained in:
j.spijker@ultimaker.com 2021-11-03 12:15:56 +01:00 committed by Jelle Spijker
parent 080e3b9f27
commit 0218703592
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A

View file

@ -78,3 +78,9 @@ class LocalPackageList(PackageList):
for package_data in manager.getPackagesToRemove().values():
yield package_data["package_info"]
for package_data in manager.getPackagesToInstall().values():
package_info = package_data["package_info"]
package_type = package_info["package_type"]
package_info["section_title"] = self.PACKAGE_SECTION_HEADER["installed"][package_type]
yield package_info