mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-02 20:59:06 +08:00
MockModuleBuild: Avoid accumulating blank lines around yum.conf
Every time we read-and-rewrote mock.cfg, we'd add another set of blank lines around the yum configuration.
This commit is contained in:
@@ -479,7 +479,7 @@ class MockModuleBuilder(GenericBuilder):
|
||||
"$root", "%s-%s" % (self.tag_name, str(threading.current_thread().name)))
|
||||
config = config.replace("$arch", self.arch)
|
||||
config = config.replace("$group", " ".join(self.groups))
|
||||
config = config.replace("$yum_conf", self.yum_conf)
|
||||
config = config.replace("$yum_conf", self.yum_conf.strip())
|
||||
config = config.replace("$enabled_modules", str(self.enabled_modules))
|
||||
config = config.replace("$releasever", str(self.releasever))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user