Add type to base product for layered releases
Default value is "ga", can be overwritten by `base_product_type` config option. Fixes: #305 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
fcfdb36352
commit
385f0e950c
@ -98,6 +98,10 @@ Options
|
|||||||
**base_product_version**
|
**base_product_version**
|
||||||
(*str*) -- base product **major** version
|
(*str*) -- base product **major** version
|
||||||
|
|
||||||
|
**base_product_type** = "ga"
|
||||||
|
(*str*) -- base product type, "ga", "updates" etc., for full list see
|
||||||
|
documentation of *productmd*.
|
||||||
|
|
||||||
|
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
|
@ -52,6 +52,7 @@ def get_compose_dir(topdir, conf, compose_type="production", compose_date=None,
|
|||||||
ci.base_product.name = conf["base_product_name"]
|
ci.base_product.name = conf["base_product_name"]
|
||||||
ci.base_product.short = conf["base_product_short"]
|
ci.base_product.short = conf["base_product_short"]
|
||||||
ci.base_product.version = conf["base_product_version"]
|
ci.base_product.version = conf["base_product_version"]
|
||||||
|
ci.base_product.type = conf.get("base_product_type", "ga").lower()
|
||||||
|
|
||||||
ci.compose.label = compose_label
|
ci.compose.label = compose_label
|
||||||
ci.compose.type = compose_type
|
ci.compose.type = compose_type
|
||||||
|
@ -84,6 +84,7 @@ def compose_to_composeinfo(compose):
|
|||||||
ci.base_product.name = compose.conf["base_product_name"]
|
ci.base_product.name = compose.conf["base_product_name"]
|
||||||
ci.base_product.version = compose.conf["base_product_version"]
|
ci.base_product.version = compose.conf["base_product_version"]
|
||||||
ci.base_product.short = compose.conf["base_product_short"]
|
ci.base_product.short = compose.conf["base_product_short"]
|
||||||
|
ci.base_product.type = compose.conf.get("base_product_type", "ga").lower()
|
||||||
|
|
||||||
def dump_variant(variant, parent=None):
|
def dump_variant(variant, parent=None):
|
||||||
var = productmd.composeinfo.Variant(ci)
|
var = productmd.composeinfo.Variant(ci)
|
||||||
|
Loading…
Reference in New Issue
Block a user