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:
Patrick Uiterwijk 2017-10-23 23:52:57 +02:00 committed by Lubomír Sedlář
parent 274f8b4e56
commit 3088df8e60
2 changed files with 6 additions and 3 deletions

View File

@ -62,8 +62,10 @@ Options
**release_version** [mandatory]
(*str*) -- release version
**release_type** = "ga"
(*str*) -- release type, "ga" or "updates"
**release_type** = "ga" (*str*) -- release type, for example ``ga``,
``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
(*bool*) -- typically False for an operating system, True otherwise

View File

@ -44,6 +44,7 @@ import re
import jsonschema
import six
from kobo.shortcuts import force_list
from productmd.common import RELEASE_TYPES
from productmd.composeinfo import COMPOSE_TYPES
import multiprocessing
@ -520,7 +521,7 @@ def make_schema():
"release_version": {"type": "string"},
"release_type": {
"type": "string",
"enum": ["fast", "ga", "updates", "eus", "aus", "els"],
"enum": RELEASE_TYPES,
"default": "ga",
},
"release_is_layered": {"type": "boolean"},