| |
@@ -45,6 +45,7 @@
|
| |
find_srpm,
|
| |
get_koji_config,
|
| |
)
|
| |
+ from module_build_service.utils.general import mmd_to_str
|
| |
from module_build_service.builder.KojiModuleBuilder import KojiModuleBuilder
|
| |
|
| |
from module_build_service import models
|
| |
@@ -231,7 +232,8 @@
|
| |
# ...and inject modules.yaml there if asked.
|
| |
if include_module_yaml:
|
| |
mmd_path = os.path.join(path, "modules.yaml")
|
| |
- m1_mmd.dump(mmd_path)
|
| |
+ with open(mmd_path, "w") as f:
|
| |
+ f.write(mmd_to_str(m1_mmd))
|
| |
execute_cmd(["/usr/bin/modifyrepo_c", "--mdtype=modules", mmd_path, repodata_path])
|
| |
|
| |
def _add_repo(self, name, baseurl, extra=""):
|
| |
This comes from #1332 with a minor additional commit.