]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: Set pool to RPM format
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 13 Jan 2021 19:37:51 +0000 (19:37 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 13 Jan 2021 19:37:51 +0000 (19:37 +0000)
On Debian and other non-RPM distributions the default format might be
something different which reconfigures evr comparison and the name of
the "all" architecture.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/pakfire.c

index f90199bcbd177141303a009ea04c824121cc8d00..b4ca5135657950ab1628103285810174214ea9eb 100644 (file)
@@ -125,6 +125,7 @@ PAKFIRE_EXPORT int pakfire_create(Pakfire* pakfire, const char* path, const char
 
        // Initialize the pool
        p->pool = pool_create();
+       pool_setdisttype(p->pool, DISTTYPE_RPM);
 
        // Set architecture of the pool
        pool_setarch(p->pool, p->arch);