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:
Lubomír Sedlář 2016-05-23 14:12:23 +02:00
parent fcfdb36352
commit 385f0e950c
3 changed files with 6 additions and 0 deletions

View File

@ -98,6 +98,10 @@ Options
**base_product_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
-------

View File

@ -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.short = conf["base_product_short"]
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.type = compose_type

View File

@ -84,6 +84,7 @@ def compose_to_composeinfo(compose):
ci.base_product.name = compose.conf["base_product_name"]
ci.base_product.version = compose.conf["base_product_version"]
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):
var = productmd.composeinfo.Variant(ci)