From 4652c3be0f32927e6a7755f42cc8edd63ab8d389 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 5 Jun 2018 12:46:32 +0200 Subject: [PATCH] Always try to remove old package files before installing new CURA-5442 --- cura/CuraPackageManager.py | 5 ++--- 1 file 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: