From 57ca41291a8859c4f0d0156c25d609e759e62e1e Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Mon, 28 May 2018 13:10:18 +0200 Subject: [PATCH] Fix package upgrade CURA-5296 The removal of already installed package is already handled by the package manager in the package upgrade. Removing the package before the download starts will make the package to be removed before the new content is available and its license gets approved by the user. --- plugins/Toolbox/src/Toolbox.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/Toolbox/src/Toolbox.py b/plugins/Toolbox/src/Toolbox.py index 824a7e30f3..ea6bdf791c 100644 --- a/plugins/Toolbox/src/Toolbox.py +++ b/plugins/Toolbox/src/Toolbox.py @@ -250,8 +250,6 @@ class Toolbox(QObject, Extension): if remote_package: download_url = remote_package["download_url"] Logger.log("d", "Updating package [%s]..." % 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)