]> git.ipfire.org Git - pbs.git/commitdiff
config: Tidy up code
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 26 Jan 2025 13:58:25 +0000 (13:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 26 Jan 2025 13:58:25 +0000 (13:58 +0000)
No functional changes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/config.py

index 486fd5a1d231d9b3427ee89f49debce375cdd31c..e65cac3d59fd78479a178ed4d9fd843f1e8e7e77 100644 (file)
@@ -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()