]> git.ipfire.org Git - pakfire.git/commitdiff
builder: Move local repository into configuration
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Apr 2021 15:56:20 +0000 (15:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Apr 2021 15:56:20 +0000 (15:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
contrib/config/distros/ipfire3.conf
src/pakfire/builder.py

index f0eb8c4aae32b18e9c5ca5c2303cfa67fad3ebe7..57d770d62d5e1416a3606030624dbd47dbe32974 100644 (file)
@@ -29,3 +29,8 @@ description = IPFire 3 - This is a repository for testing stuff.
 enabled = 0
 baseurl = https://pakfire.ipfire.org/repositories/ipfire3/testing/%{arch}
 mirrors = https://pakfire.ipfire.org/distro/ipfire3/repo/testing/mirrorlist?arch=%{arch}
+
+[repo:local]
+description    = IPFire 3 locally built packages
+baseurl                = file:///var/lib/pakfire/local/ipfire3/%{arch}
+priority       = 1000
index 4e42381f41b899504324e085236bc4d1be09f7e5..e85c2971bf88e7ee2eb91e4a403eb1ccb4bb09ea 100644 (file)
@@ -112,13 +112,6 @@ class Builder(object):
                for i in ("/etc/resolv.conf", "/etc/hosts"):
                        pakfire.copy_in(i, i)
 
-               # Add build repository
-               # XXX this probably belongs somewhere else
-               repo = _pakfire.Repo(pakfire, "@local")
-               repo.baseurl = "file:///var/lib/pakfire/local"
-               print(repo)
-               repo.scan()
-
                return BuilderContext(pakfire, self)
 
        def __exit__(self, type, value, traceback):