checks: Use list of release types from productmd
Let's not duplicate the list. Productmd exports a list of valid values, so Pungi should just pick and use that. Closes: https://pagure.io/pungi/pull-request/773 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
274f8b4e56
commit
3088df8e60
@ -62,8 +62,10 @@ Options
|
|||||||
**release_version** [mandatory]
|
**release_version** [mandatory]
|
||||||
(*str*) -- release version
|
(*str*) -- release version
|
||||||
|
|
||||||
**release_type** = "ga"
|
**release_type** = "ga" (*str*) -- release type, for example ``ga``,
|
||||||
(*str*) -- release type, "ga" or "updates"
|
``updates`` or ``updates-testing``. See `list of all valid values
|
||||||
|
<http://productmd.readthedocs.io/en/latest/common.html#productmd.common.RELEASE_TYPES>`_
|
||||||
|
in productmd documentation.
|
||||||
|
|
||||||
**release_is_layered** = False
|
**release_is_layered** = False
|
||||||
(*bool*) -- typically False for an operating system, True otherwise
|
(*bool*) -- typically False for an operating system, True otherwise
|
||||||
|
@ -44,6 +44,7 @@ import re
|
|||||||
import jsonschema
|
import jsonschema
|
||||||
import six
|
import six
|
||||||
from kobo.shortcuts import force_list
|
from kobo.shortcuts import force_list
|
||||||
|
from productmd.common import RELEASE_TYPES
|
||||||
from productmd.composeinfo import COMPOSE_TYPES
|
from productmd.composeinfo import COMPOSE_TYPES
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
|
|
||||||
@ -520,7 +521,7 @@ def make_schema():
|
|||||||
"release_version": {"type": "string"},
|
"release_version": {"type": "string"},
|
||||||
"release_type": {
|
"release_type": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["fast", "ga", "updates", "eus", "aus", "els"],
|
"enum": RELEASE_TYPES,
|
||||||
"default": "ga",
|
"default": "ga",
|
||||||
},
|
},
|
||||||
"release_is_layered": {"type": "boolean"},
|
"release_is_layered": {"type": "boolean"},
|
||||||
|
Loading…
Reference in New Issue
Block a user