]> git.ipfire.org Git - pbs.git/commitdiff
config: Move basepath into [global] section
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Oct 2022 17:02:46 +0000 (17:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Oct 2022 17:02:46 +0000 (17:02 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/__init__.py
tests/test.py

index 61a18a9c4581c1174a8b52950d51c549f149c959..34635f9af75dd219e15e4a655abc66931041e8e8 100644 (file)
@@ -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)
index 4bc7c6e443097f028b0d65813d3f4110d3e56d13..612ca16952c96fb2d79a8fcfdbba29ef821328e3 100644 (file)
@@ -72,7 +72,7 @@ class TestCase(unittest.IsolatedAsyncioTestCase):
                conf = configparser.ConfigParser()
 
                # Set the base path
-               conf["DEFAULT"] = {
+               conf["global"] = {
                        "basepath" : self.testdir.name,
                }