]> git.ipfire.org Git - pakfire.git/commitdiff
pakfire: Set pool path
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Apr 2021 08:47:40 +0000 (08:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Apr 2021 08:47:40 +0000 (08:47 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/pakfire.c

index fcf51cc2e5af9427a0c37296f0514c565b769abb..a3e4772a1b4710240c7a286750e75b393927db7b 100644 (file)
@@ -329,6 +329,9 @@ static int pakfire_populate_pool(Pakfire pakfire) {
        // Set architecture of the pool
        pool_setarch(pool, pakfire->arch);
 
+       // Set path
+       pool_set_rootdir(pool, pakfire->path);
+
        // Open database in read-only mode and try to load all installed packages
        r = pakfire_db_open(&db, pakfire, PAKFIRE_DB_READWRITE);
        if (r)