From: Michael Tremer Date: Sun, 26 Jan 2025 13:58:25 +0000 (+0000) Subject: config: Tidy up code X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9de99f9d82480a0f218e7dcff879b0877e28c92;p=pbs.git config: Tidy up code No functional changes. Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/config.py b/src/buildservice/config.py index 486fd5a1..e65cac3d 100644 --- a/src/buildservice/config.py +++ b/src/buildservice/config.py @@ -93,19 +93,24 @@ class PakfireConfig(base.Object): # Fetch all repositories repos = await self.fetch_repos() - # Apply some general settings - if local: - config["general"] = {} - # Add the distro configuration if self.distro: - self.distro.write_config(config, local=local, - vendor=self.vendor, contact=self.contact) + self.distro.write_config( + config, + local = local, + vendor = self.vendor, + contact = self.contact, + ) # Add the repository configurations for repo in sorted(repos): - repo.write_config(config, local=local, include_source=self.include_source, - mirrored=self.mirrored, build=self.build) + repo.write_config( + config, + local = local, + include_source = self.include_source, + mirrored = self.mirrored, + build = self.build, + ) # Allocate a buffer and write the configuration to it f = io.StringIO()