From: Michael Tremer Date: Wed, 12 Oct 2022 17:02:46 +0000 (+0000) Subject: config: Move basepath into [global] section X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8879f126442a416ad86f967fd975de4b3c9667dd;p=pbs.git config: Move basepath into [global] section Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/__init__.py b/src/buildservice/__init__.py index 61a18a9c..34635f9a 100644 --- a/src/buildservice/__init__.py +++ b/src/buildservice/__init__.py @@ -53,7 +53,7 @@ class Backend(object): self.config = self.read_config(config_file) # Fetch the base path - self.basepath = self.config.get("DEFAULT", "basepath") or "/pub/pakfire" + self.basepath = self.config.get("global", "basepath") # Global pakfire settings (from database). self.settings = settings.Settings(self) diff --git a/tests/test.py b/tests/test.py index 4bc7c6e4..612ca169 100644 --- a/tests/test.py +++ b/tests/test.py @@ -72,7 +72,7 @@ class TestCase(unittest.IsolatedAsyncioTestCase): conf = configparser.ConfigParser() # Set the base path - conf["DEFAULT"] = { + conf["global"] = { "basepath" : self.testdir.name, }