From 0525af93ed4c368a90f8bd1d77dfd40cea1aab6e Mon Sep 17 00:00:00 2001 From: evandrocoan Date: Sat, 16 Dec 2017 22:48:53 -0200 Subject: [PATCH] Fixed it uninstalling dependencies from default packages and other dependencies on the package clean up. Issue: If a Default Package or a dependency requires a dependency, its dependency is uninstalled at clean on package control start up https://github.com/wbond/package_control/issues/1304 --- packagesmanager/package_manager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packagesmanager/package_manager.py b/packagesmanager/package_manager.py index 45b5abf3..1ffd1305 100644 --- a/packagesmanager/package_manager.py +++ b/packagesmanager/package_manager.py @@ -698,6 +698,9 @@ def list_packages(self, unpacked_only=False, list_everything=False): :param unpacked_only: Only list packages that are not inside of .sublime-package files + :param list_everything: + List all default packages, dependencies and the installed packages + :return: A list of all installed, non-default, non-dependency, package names """ @@ -853,7 +856,7 @@ def find_required_dependencies(self, ignore_package=None): output = ['0_packagesmanager_loader'] - for package in self.list_packages(): + for package in self.list_packages(list_everything=True): if package == ignore_package: continue output.extend(self.get_dependencies(package))