]> git.ipfire.org Git - pakfire.git/commitdiff
builder: Temporarily add a local repository for debugging
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Apr 2021 14:22:59 +0000 (14:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Apr 2021 14:22:59 +0000 (14:22 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/builder.py

index e85c2971bf88e7ee2eb91e4a403eb1ccb4bb09ea..4e42381f41b899504324e085236bc4d1be09f7e5 100644 (file)
@@ -112,6 +112,13 @@ 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):