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:
authorfieldOfView <aldo@fieldofview.com>2016-12-13 14:04:04 +0300
committerfieldOfView <aldo@fieldofview.com>2016-12-13 14:04:04 +0300
commit5718ca7852d60db16763744cee87b4f6444f21ca (patch)
tree6cac4f1c8665a13b66cefffdd7426cceb0e6924d /plugins/VersionUpgrade/VersionUpgrade22to24
parentc561395cf21b975b95eeed4f80c1c7251e9db245 (diff)
Make sure definition_changes containers are not upgraded to stacks
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade22to24')
-rw-r--r--plugins/VersionUpgrade/VersionUpgrade22to24/VersionUpgrade.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade22to24/VersionUpgrade.py b/plugins/VersionUpgrade/VersionUpgrade22to24/VersionUpgrade.py
index dce2b311bb..04267f45f1 100644
--- a/plugins/VersionUpgrade/VersionUpgrade22to24/VersionUpgrade.py
+++ b/plugins/VersionUpgrade/VersionUpgrade22to24/VersionUpgrade.py
@@ -19,6 +19,10 @@ class VersionUpgrade22to24(VersionUpgrade):
config = configparser.ConfigParser(interpolation = None)
config.read_string(serialised) # Read the input string as config file.
+ if config.get("metadata", "type") == "definition_changes":
+ # This is not a container stack, don't upgrade it here
+ return
+
config.set("general", "version", "3")
container_list = []