Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
"""
Generates the configuration file
"""
- lines = []
+ parts = []
# Add the distro configuration
if self.distro:
- lines += self.distro._make_config(local=local)
+ config = self.distro._make_config(local=local)
+ parts.append(config)
# Add the repository configurations
for repo in self.repos:
- lines += repo._make_config(local=local)
+ config = repo._make_config(local=local)
+ parts.append(config)
- return "\n".join(lines)
+ return "\n".join(parts)
"### CUSTOM CONFIG END ###",
)
- return lines
+ return "\n".join(lines)
# Name