-
-
Notifications
You must be signed in to change notification settings - Fork 818
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor missing package installation
Fixes #1155 This commit re-uses existing `PackageTaskRunner` functionality to create a list of missing packages and install them. The benefit is more detailed logging and increased re-usability of existing code. This commit provides the following major changes in behavior: 1. It does no longer track renamed packages. The `installed_packages` setting must contain up-to-date package names. It might be surprising to see packages being installed, which are not in the list of `installed_packages`. Maybe private packages are named like ones from official channel used to be in the past. If renaming is to be taken into account each entry would need to be checked for being available first. 2. It overwrites existing unmanaged packages. The `installed_packages` setting normally contains packages, which have been installed via and are managed by Package Control. Any package in that list can be considered as "to be managed". Custom unmanaged packages should not appear in that list as the only way they get there was a user adding them manually. Hence it can be considered safe to take the `installed_packages` and ask ST to install them and overwrite possibly existing unmanaged packages, as it is likely enough for them to be overrides. Note: git/hg repositories are not treated as overrides nor are they treated as managed packages. 3. All remaining missing packages are removed from `installed_packages` once all available packages have been installed in order to prevent ST from re-trying after each start.
- Loading branch information
Showing
2 changed files
with
34 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters