]> git.ipfire.org Git - pakfire.git/commitdiff
request: Drop option for arch change
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Jun 2021 20:05:13 +0000 (20:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Jun 2021 20:05:13 +0000 (20:05 +0000)
This is irrelevant for IPFire since we do not support multiarch

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

index 3868bc53bf85135b4737294de35585c2d5f38cc8..0bc990686717f88777f05b38a17b6d8c469a1c89 100644 (file)
@@ -348,18 +348,13 @@ static PyObject* Pakfire_update(PakfireObject* self, PyObject* args, PyObject* k
        };
        char** packages = NULL;
        char** excludes = NULL;
-       int allow_archchange = 0;
        int allow_vendorchange = 0;
        int flags = 0;
 
-       if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O&|$O&pp", kwlist,
-                       convert_packages, &packages, convert_packages, &excludes,
-                       &allow_archchange, &allow_vendorchange))
+       if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O&|$O&p", kwlist,
+                       convert_packages, &packages, convert_packages, &excludes, &allow_vendorchange))
                return NULL;
 
-       if (allow_archchange)
-               flags |= PAKFIRE_SOLVER_ALLOW_ARCHCHANGE;
-
        if (allow_vendorchange)
                flags |= PAKFIRE_SOLVER_ALLOW_VENDORCHANGE;
 
index e6300e008ac99b44d1d8f1eeb97811c4ffd2d7c6..034406833b5900912376b6890529864a42f9cf3b 100644 (file)
@@ -34,9 +34,8 @@ enum _pakfire_solver_flags {
        PAKFIRE_SOLVER_ALLOW_UNINSTALL    = 1 << 0,
        PAKFIRE_SOLVER_FORCE_BEST         = 1 << 1,
        PAKFIRE_SOLVER_WITHOUT_RECOMMENDS = 1 << 2,
-       PAKFIRE_SOLVER_ALLOW_ARCHCHANGE   = 1 << 3,
-       PAKFIRE_SOLVER_ALLOW_DOWNGRADE    = 1 << 4,
-       PAKFIRE_SOLVER_ALLOW_VENDORCHANGE = 1 << 5,
+       PAKFIRE_SOLVER_ALLOW_DOWNGRADE    = 1 << 3,
+       PAKFIRE_SOLVER_ALLOW_VENDORCHANGE = 1 << 4,
 };
 
 int pakfire_request_create(struct pakfire_request** request, Pakfire pakfire, int flags);