diff options
author | Ian Paschal <ian.paschal@gmail.com> | 2018-06-04 12:49:42 +0300 |
---|---|---|
committer | Ian Paschal <ian.paschal@gmail.com> | 2018-06-04 12:49:42 +0300 |
commit | 096f0775a8e08b3d7bdbb4648307c30c78f709f7 (patch) | |
tree | 3cf86d78fcc69bfcd20bed64adeeda532d974fbe /cura | |
parent | 0e11a165a3a39ec74f1884041e6f3a5734ed817b (diff) |
CURA-5442 Compare plugin registry to package manager
Diffstat (limited to 'cura')
-rw-r--r-- | cura/CuraPackageManager.py | 8 |
1 files changed, 7 insertions, 1 deletions
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 <package_type> -> <package_id> -> <package_info> installed_packages_dict = {} for package_id in all_installed_ids: |