]> git.ipfire.org Git - pakfire.git/commitdiff
Explicetly set libsolv disttype
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 21 Nov 2016 19:28:03 +0000 (20:28 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 21 Nov 2016 19:28:03 +0000 (20:28 +0100)
This will define what is assumed to be "noarch"
and on Debian/Ubuntu-based systems this will default
to something else.

If MULTI_SEMANTICS is enabled in libsolv, this will
allow us to use "noarch" as independent architecture.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/_pakfire/pool.c

index 6cb8287fa5864c3fe9ad96cba26a71a89ce75d10..fa23fadb7e82f58495155348887d74f883ded595 100644 (file)
@@ -58,6 +58,7 @@ PyObject* Pool_new(PyTypeObject *type, PyObject *args, PyObject *kwds) {
                pool_setdebuglevel(self->_pool, 1);
 #endif
 
+               pool_setdisttype(self->_pool, DISTTYPE_RPM);
                pool_setarch(self->_pool, arch);
                if (self->_pool == NULL) {
                        Py_DECREF(self);