mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-04 03:08:21 +08:00
Set the module_platform_id in the yum.conf
This commit is contained in:
@@ -12,6 +12,7 @@ syslog_device=
|
||||
install_weak_deps=0
|
||||
metadata_expire=3600
|
||||
mdpolicy=group:primary
|
||||
module_platform_id=$module_platform_id
|
||||
|
||||
# repos
|
||||
|
||||
|
||||
@@ -339,6 +339,10 @@ class MockModuleBuilder(GenericBuilder):
|
||||
if len(mmds) == 1 and mmds[0].get_name() in conf.base_module_names:
|
||||
for repofile in conf.base_module_repofiles:
|
||||
self._add_repo_from_path(repofile)
|
||||
# Also set the platform_id.
|
||||
mmd = mmds[0]
|
||||
self.yum_conf = self.yum_conf.replace(
|
||||
"$module_platform_id", "%s:%s" % (mmd.get_name(), mmd.get_stream()))
|
||||
else:
|
||||
# Add repositories defined in repofile to mock config.
|
||||
repofile = source[len("repofile://"):]
|
||||
|
||||
Reference in New Issue
Block a user