Load supported milestones from productmd
Since 1.18 productmd will make the list available for consumers. If possible, we should use it, and fall back to hardcoded list. JIRA: COMPOSE-3044 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
04715f4906
commit
32bb9aeabe
@ -38,7 +38,12 @@ from pungi.wrappers.scm import get_file_from_scm
|
|||||||
from pungi.util import makedirs, get_arch_variant_data, get_format_substs
|
from pungi.util import makedirs, get_arch_variant_data, get_format_substs
|
||||||
from pungi.metadata import compose_to_composeinfo
|
from pungi.metadata import compose_to_composeinfo
|
||||||
|
|
||||||
SUPPORTED_MILESTONES = ["RC", "Update"]
|
try:
|
||||||
|
# This is available since productmd >= 1.18
|
||||||
|
# TODO: remove this once the version is distributed widely enough
|
||||||
|
from productmd.composeinfo import SUPPORTED_MILESTONES
|
||||||
|
except ImportError:
|
||||||
|
SUPPORTED_MILESTONES = ["RC", "Update", "SecurityFix"]
|
||||||
|
|
||||||
|
|
||||||
def get_compose_dir(topdir, conf, compose_type="production", compose_date=None, compose_respin=None, compose_label=None, already_exists_callbacks=None):
|
def get_compose_dir(topdir, conf, compose_type="production", compose_date=None, compose_respin=None, compose_label=None, already_exists_callbacks=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user