Commit 989b018 fix product -> release namespace change for productmd

1 file Authored and Committed by Adam Miller 2 years ago
fix product -> release namespace change for productmd

    
 1 @@ -91,10 +91,10 @@
 2   
 3           # product
 4           # TODO: read from variants.xml
 5 -         ti.product.name = variant.product_name
 6 -         ti.product.version = variant.product_version
 7 -         ti.product.short = variant.product_short
 8 -         ti.product.is_layered = True
 9 +         ti.release.name = variant.product_name
10 +         ti.release.version = variant.product_version
11 +         ti.release.short = variant.product_short
12 +         ti.release.is_layered = True
13   
14           # base product
15           ti.base_product.name = compose.conf["product_name"]
16 @@ -106,13 +106,13 @@
17           ti.base_product.short = compose.conf["product_short"]
18       else:
19           # product
20 -         ti.product.name = compose.conf["product_name"]
21 -         ti.product.version = compose.conf["product_version"]
22 -         ti.product.short = compose.conf["product_short"]
23 -         ti.product.is_layered = compose.conf.get("product_is_layered", False)
24 +         ti.release.name = compose.conf["product_name"]
25 +         ti.release.version = compose.conf["product_version"]
26 +         ti.release.short = compose.conf["product_short"]
27 +         ti.release.is_layered = compose.conf.get("product_is_layered", False)
28   
29           # base product
30 -         if ti.product.is_layered:
31 +         if ti.release.is_layered:
32               ti.base_product.name = compose.conf["base_product_name"]
33               ti.base_product.version = compose.conf["base_product_version"]
34               ti.base_product.short = compose.conf["base_product_short"]
35 @@ -158,7 +158,7 @@
36           repomd_path = os.path.join(addon.repository, "repodata", "repomd.xml")
37           ti.checksums.add(os_tree, repomd_path)
38   
39 -     class LoraxProduct(productmd.treeinfo.product.Product):
40 +     class LoraxProduct(productmd.treeinfo.Release):
41           def _check_short(self):
42               # HACK: set self.short so .treeinfo produced by lorax can be read
43               if not self.short: