mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 23:05:57 +08:00
Merge remote-tracking branch 'origin/CURA-8587_disable_update_install_and_uninstall' into CURA-8587_disable_update_install_and_uninstall
This commit is contained in:
commit
6f99313ca5
@ -68,16 +68,24 @@ class CuraPackageManager(PackageManager):
|
|||||||
|
|
||||||
def iterateAllLocalPackages(self) -> Generator[Dict[str, Any], None, None]:
|
def iterateAllLocalPackages(self) -> Generator[Dict[str, Any], None, None]:
|
||||||
""" A generator which returns an unordered list of all the PackageModels"""
|
""" A generator which returns an unordered list of all the PackageModels"""
|
||||||
|
handled_packages = set()
|
||||||
|
|
||||||
for packages in self.getAllInstalledPackagesInfo().values():
|
for packages in self.getAllInstalledPackagesInfo().values():
|
||||||
for package_info in packages:
|
for package_info in packages:
|
||||||
|
if not handled_packages.__contains__(package_info["package_id"]):
|
||||||
|
handled_packages.add(package_info["package_id"])
|
||||||
yield package_info
|
yield package_info
|
||||||
|
|
||||||
# Get all to be removed package_info's. These packages are still used in the current session so the user might
|
# Get all to be removed package_info's. These packages are still used in the current session so the user might
|
||||||
# still want to interact with these.
|
# still want to interact with these.
|
||||||
for package_data in self.getPackagesToRemove().values():
|
for package_data in self.getPackagesToRemove().values():
|
||||||
|
for package_data in self.getPackagesToRemove().values():
|
||||||
|
if not handled_packages.__contains__(package_data["package_info"]["package_id"]):
|
||||||
|
handled_packages.add(package_data["package_info"]["package_id"])
|
||||||
yield package_data["package_info"]
|
yield package_data["package_info"]
|
||||||
|
|
||||||
# Get all to be installed package_info's. Since the user might want to interact with these
|
# Get all to be installed package_info's. Since the user might want to interact with these
|
||||||
for package_data in self.getPackagesToInstall().values():
|
for package_data in self.getPackagesToInstall().values():
|
||||||
|
if not handled_packages.__contains__(package_data["package_info"]["package_id"]):
|
||||||
|
handled_packages.add(package_data["package_info"]["package_id"])
|
||||||
yield package_data["package_info"]
|
yield package_data["package_info"]
|
Loading…
x
Reference in New Issue
Block a user