mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Always try to remove old package files before installing new
CURA-5442
This commit is contained in:
parent
c5929ce26c
commit
4652c3be0f
1 changed files with 2 additions and 3 deletions
|
@ -306,9 +306,8 @@ class CuraPackageManager(QObject):
|
||||||
|
|
||||||
Logger.log("i", "Installing package [%s] from file [%s]", package_id, filename)
|
Logger.log("i", "Installing package [%s] from file [%s]", package_id, filename)
|
||||||
|
|
||||||
# If it's installed, remove it first and then install
|
# remove it first and then install
|
||||||
if package_id in self._installed_package_dict:
|
self._purgePackage(package_id)
|
||||||
self._purgePackage(package_id)
|
|
||||||
|
|
||||||
# Install the package
|
# Install the package
|
||||||
with zipfile.ZipFile(filename, "r") as archive:
|
with zipfile.ZipFile(filename, "r") as archive:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue