Skip to content

Commit

Permalink
Fixes #2: Self-updating not working
Browse files Browse the repository at this point in the history
Wrong name added to the installed_packages list for self-tracking
  • Loading branch information
ueffel committed Feb 28, 2018
1 parent 1b87f78 commit 658588a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packagecontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def on_start(self):
if os.path.dirname(__file__).endswith("PackageControl.keypirinha-package") \
and os.path.dirname(os.path.dirname(__file__)) \
and "PackageControl" not in self._installed_packages:
self._installed_packages.append("PackageControl")
self._installed_packages.append("Keypirinha-PackageControl")

self._check_installed()

Expand Down Expand Up @@ -216,6 +216,7 @@ def on_execute(self, item, action):
self._install_package(self._get_package(item.raw_args()), force=True)
elif item.target() == "update_repo":
self._get_available_packages(True)
self._check_installed()
elif item.target() == "update_all":
self._get_available_packages(True)
for package_name in self._installed_packages:
Expand Down

0 comments on commit 658588a

Please sign in to comment.