]> git.ipfire.org Git - pbs.git/commitdiff
Update setting the cache path
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Nov 2023 10:18:41 +0000 (10:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Nov 2023 10:18:41 +0000 (10:18 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/__init__.py
src/buildservice/config.py

index fc5a809eae4e06b893e08fe120cd0f083d02b1fe..b9efad0a3f352d7fcf0fc1c924e985ff87fde548 100644 (file)
@@ -48,6 +48,9 @@ from .__version__ import VERSION as __version__
 from .decorators import *
 from .constants import *
 
+# Set the cache path
+pakfire.set_cache_path("/pub/pakfire/.cache")
+
 class Backend(object):
        version = __version__
 
index 5ffab696ab6ad2df41a841bea1c0045f8898bb04..2196e38dee73ad6a998338dc7721b069f9b1a9ee 100644 (file)
@@ -112,9 +112,7 @@ class PakfireConfig(base.Object):
 
                # Apply some general settings
                if local:
-                       config["general"] = {
-                               "cache_path" : self.backend.path(".cache"),
-                       }
+                       config["general"] = {}
 
                # Add the distro configuration
                if self.distro: