From: Michael Tremer Date: Wed, 1 Nov 2023 10:18:41 +0000 (+0000) Subject: Update setting the cache path X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46df0e8630c2aace792b574d6c8dfed71acbaac;p=pbs.git Update setting the cache path Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/__init__.py b/src/buildservice/__init__.py index fc5a809e..b9efad0a 100644 --- a/src/buildservice/__init__.py +++ b/src/buildservice/__init__.py @@ -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__ diff --git a/src/buildservice/config.py b/src/buildservice/config.py index 5ffab696..2196e38d 100644 --- a/src/buildservice/config.py +++ b/src/buildservice/config.py @@ -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: