Fix uninstallable user package which was also bundled; make update package somewhat better by not trying to uninstall builtin package

This commit is contained in:
Jack Ha 2018-05-15 16:23:54 +02:00
parent fd73751b91
commit 9281c23555
2 changed files with 9 additions and 4 deletions

View file

@ -232,7 +232,8 @@ class Toolbox(QObject, Extension):
if remote_package:
download_url = remote_package["download_url"]
Logger.log("d", "Updating package [%s]..." % plugin_id)
self.uninstall(plugin_id)
if self._package_manager.isUserInstalledPackage(plugin_id):
self.uninstall(plugin_id)
self.startDownload(download_url)
else:
Logger.log("e", "Could not update package [%s] because there is no remote package info available.", plugin_id)