Skip to content

Commit b582c03

Browse files
author
ajohns
committed
-added package format specific format_version attrib
1 parent 22af7f6 commit b582c03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rezplugins/package_repository/filesystem.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636

3737
def check_format_version(filename, data):
38-
format_version_ = data.get("format_version")
38+
format_version_ = data.pop("format_version", None)
3939

4040
if format_version_ is not None:
4141
try:
@@ -809,9 +809,10 @@ def remove_build_keys(obj):
809809
if value is not None:
810810
release_data[key] = value
811811

812-
for key in ("base", "variants"):
812+
for key in ("format_version", "base", "variants"):
813813
data_1.pop(key, None)
814814
data_2.pop(key, None)
815+
815816
package_changed = (data_1 != data_2)
816817

817818
# special case - installing a no-variant pkg into a no-variant pkg

0 commit comments

Comments
 (0)