mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 03:38:12 +08:00
Correct the docstrings referring to the old modulemd type
This commit is contained in:
@@ -156,7 +156,7 @@ class MBSResolver(GenericResolver):
|
||||
|
||||
def resolve_profiles(self, mmd, keys):
|
||||
"""
|
||||
:param mmd: ModuleMetadata instance of module
|
||||
:param mmd: Modulemd.Module instance of module
|
||||
:param keys: list of modulemd installation profiles to include in
|
||||
the result.
|
||||
:return: Dictionary with keys set according to `keys` param and values
|
||||
@@ -213,8 +213,8 @@ class MBSResolver(GenericResolver):
|
||||
:param strict: Normally this function returns None if no module can be
|
||||
found. If strict=True, then an UnprocessableEntity is raised.
|
||||
:return: a mapping containing buildrequire modules info in key/value pairs,
|
||||
where key is koji_tag and value is the ModuleMetadata object.
|
||||
:rtype: dict(str, :class:`ModuleMetadata`)
|
||||
where key is koji_tag and value is the Modulemd.Module object.
|
||||
:rtype: dict(str, :class:`Modulemd.Module`)
|
||||
"""
|
||||
|
||||
if mmd:
|
||||
|
||||
@@ -223,7 +223,7 @@ def wait(config, session, msg):
|
||||
cg_build_koji_tag = conf.koji_cg_default_build_tag
|
||||
if conf.system not in ['koji', 'test']:
|
||||
# In case of non-koji backend, we want to get the dependencies
|
||||
# of the local module build based on ModuleMetadata, because the
|
||||
# of the local module build based on Modulemd.Module, because the
|
||||
# local build is not stored in the external MBS and therefore we
|
||||
# cannot query it using the `query` as for Koji below.
|
||||
dependencies = resolver.get_module_build_dependencies(
|
||||
|
||||
@@ -121,7 +121,7 @@ def _get_mmds_from_requires(session, requires, mmds, recursive=False,
|
||||
the list of module metadata objects defined by `requires` dict.
|
||||
|
||||
:param session: SQLAlchemy DB session.
|
||||
:param requires: Modulemetadata requires or buildrequires.
|
||||
:param requires: Modulemd.Module requires or buildrequires.
|
||||
:param mmds: Dictionary with already handled name:streams as a keys and lists
|
||||
of resulting mmds as values.
|
||||
:param recursive: If True, the requires are checked recursively.
|
||||
|
||||
@@ -116,7 +116,7 @@ def format_mmd(mmd, scmurl, session=None):
|
||||
Prepares the modulemd for the MBS. This does things such as replacing the
|
||||
branches of components with commit hashes and adding metadata in the xmd
|
||||
dictionary.
|
||||
:param mmd: the ModuleMetadata object to format
|
||||
:param mmd: the Modulemd.Module object to format
|
||||
:param scmurl: the url to the modulemd
|
||||
"""
|
||||
# Import it here, because SCM uses utils methods and fails to import
|
||||
|
||||
Reference in New Issue
Block a user