Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
self.add_repo(repo)
def __str__(self):
- buffer = io.StringIO()
-
- # Generate the configuration
config = self._make_config()
+
+ return self._to_string(config)
+
+ def _to_string(self, config):
+ buffer = io.StringIO()
config.write(buffer)
return buffer.getvalue()
# Make configuration
config = self._make_config(local=True)
+ log.error("Launching Pakfire with configuration:\n%s", self._to_string(config))
+
with self.backend.tempfile(mode="w+") as t:
# Write the configuration to disk
config.write(t)