From 096f0775a8e08b3d7bdbb4648307c30c78f709f7 Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Mon, 4 Jun 2018 11:49:42 +0200 Subject: CURA-5442 Compare plugin registry to package manager --- cura/CuraPackageManager.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cura/CuraPackageManager.py') diff --git a/cura/CuraPackageManager.py b/cura/CuraPackageManager.py index 096bfc9065..24a7bda267 100644 --- a/cura/CuraPackageManager.py +++ b/cura/CuraPackageManager.py @@ -134,7 +134,7 @@ class CuraPackageManager(QObject): return None - def getAllInstalledPackagesInfo(self) -> dict: + def getAllInstalledPackageIDs(self) -> set: # Add bundled, installed, and to-install packages to the set of installed package IDs all_installed_ids = set() @@ -147,6 +147,12 @@ class CuraPackageManager(QObject): if self._to_install_package_dict.keys(): all_installed_ids = all_installed_ids.union(set(self._to_install_package_dict.keys())) + return all_installed_ids + + def getAllInstalledPackagesInfo(self) -> dict: + + all_installed_ids = self.getAllInstalledPackageIDs() + # map of -> -> installed_packages_dict = {} for package_id in all_installed_ids: -- cgit v1.2.3