Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLipu Fei <lipu.fei815@gmail.com>2018-06-05 13:46:32 +0300
committerLipu Fei <lipu.fei815@gmail.com>2018-06-05 13:47:01 +0300
commit4652c3be0f32927e6a7755f42cc8edd63ab8d389 (patch)
treee299074ffdc6fd0a3d578d459370e173385a98a4 /cura/CuraPackageManager.py
parentc5929ce26c73a46b17bae5f4e1a944432e56e18b (diff)
Always try to remove old package files before installing new
CURA-5442
Diffstat (limited to 'cura/CuraPackageManager.py')
-rw-r--r--cura/CuraPackageManager.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/cura/CuraPackageManager.py b/cura/CuraPackageManager.py
index 3d4a360c7e..1ec9e2d993 100644
--- a/cura/CuraPackageManager.py
+++ b/cura/CuraPackageManager.py
@@ -306,9 +306,8 @@ class CuraPackageManager(QObject):
Logger.log("i", "Installing package [%s] from file [%s]", package_id, filename)
- # If it's installed, remove it first and then install
- if package_id in self._installed_package_dict:
- self._purgePackage(package_id)
+ # remove it first and then install
+ self._purgePackage(package_id)
# Install the package
with zipfile.ZipFile(filename, "r") as archive: