Skip to content

Commit

Permalink
Fixed it uninstalling dependencies from default packages and other
Browse files Browse the repository at this point in the history
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
wbond#1304
  • Loading branch information
evandrocoan committed Dec 17, 2017
1 parent b49f706 commit 0525af9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packagesmanager/package_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""

Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 0525af9

Please sign in to comment.