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:
Owen W. Taylor
2020-11-16 11:38:50 -05:00
committed by breilly
parent 0a8160a91c
commit 433ddce11c

View File

@@ -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))