]> git.ipfire.org Git - pbs.git/commitdiff
config: Apply general configuration only locally
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Mar 2023 19:00:34 +0000 (19:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Mar 2023 19:00:34 +0000 (19:00 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/config.py

index 175b3983c8ee043414bc30513f9e54a9e36debe7..b509febbe75026cea215a92b11d6f964c61129c0 100644 (file)
@@ -77,9 +77,10 @@ class PakfireConfig(base.Object):
                        default_section="general")
 
                # Apply some general settings
-               config["general"] = {
-                       "cache_path" : self.backend.path(".cache"),
-               }
+               if local:
+                       config["general"] = {
+                               "cache_path" : self.backend.path(".cache"),
+                       }
 
                # Add the distro configuration
                if self.distro: