Skip to content
Snippets Groups Projects
Commit bf9d94e0 authored by Sebastien Luttringer's avatar Sebastien Luttringer
Browse files

fix presence of is_min_version during read_metadata

parent 59d2fa7d
No related branches found
No related tags found
No related merge requests found
......@@ -554,10 +554,12 @@ class PackageImage(Image):
desc.update(json.loads(img_desc))
self.check_image_name(desc["name"])
self.check_image_version(desc["version"])
# add is_min_version if not present
if "is_min_version" not in desc:
desc["is_min_version"] = 0
# check installsystems min version
if "is_min_version" in desc:
if self.compare_versions(installsystems.version, desc["is_min_version"]) < 0:
raise Exception("Minimum Installsystems version not satisfied")
if self.compare_versions(installsystems.version, desc["is_min_version"]) < 0:
raise Exception("Minimum Installsystems version not satisfied")
except Exception as e:
raise Exception("Invalid description: %s" % e)
# try to load changelog
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment