Skip to content

Commit

Permalink
Fixed package_cleanup.py running AdvancedUninstallPackageThread
Browse files Browse the repository at this point in the history
with an empty packages name list, causing the verbosity output
from it, to be always displayed on Sublime Text console on
start up.
  • Loading branch information
evandrocoan committed Mar 3, 2019
1 parent ef596ba commit 3bc86de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package_control/package_cleanup.py
Expand Up @@ -131,8 +131,9 @@ def run(self):
else:
found_packages.append(package_name)

uninstaller = AdvancedUninstallPackageThread(not_found_packages)
uninstaller.run()
if not_found_packages:
uninstaller = AdvancedUninstallPackageThread(not_found_packages)
uninstaller.run()

required_dependencies = set(self.manager.find_required_dependencies())
extra_dependencies = list(set(installed_dependencies) - required_dependencies)
Expand Down

0 comments on commit 3bc86de

Please sign in to comment.