]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
update: Drop --allow-{arch,vendor}change
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 4 Jul 2021 11:26:20 +0000 (11:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 4 Jul 2021 11:26:20 +0000 (11:26 +0000)
I am not sure if these are useful for us at all

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

index 43a358cf2924feb3653fee3170eca98bdf1b20b3..da7b6879c93817efbd71d4f2f8c33baecad6cc60 100644 (file)
@@ -341,22 +341,16 @@ static PyObject* Pakfire_update(PakfireObject* self, PyObject* args, PyObject* k
        char* kwlist[] = {
                "packages",
                "excludes",
-               "allow_archchange",
-               "allow_vendorchange",
                NULL
        };
        char** packages = NULL;
        char** excludes = NULL;
-       int allow_vendorchange = 0;
        int flags = 0;
 
-       if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O&|$O&p", kwlist,
-                       convert_packages, &packages, convert_packages, &excludes, &allow_vendorchange))
+       if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O&|$O&", kwlist,
+                       convert_packages, &packages, convert_packages, &excludes))
                return NULL;
 
-       if (allow_vendorchange)
-               flags |= PAKFIRE_SOLVER_ALLOW_VENDORCHANGE;
-
        // Run pakfire_update
        int r = pakfire_update(self->pakfire, (const char**)packages,
                (const char**)excludes, flags, NULL);
index 271424f24faa12c6608e706d9aad91228dca68ac..b86088fd658cfbe3ff7fb975605a34f50522792c 100644 (file)
@@ -136,10 +136,6 @@ class Cli(object):
                        help=_("Update the whole system or one specific package"))
                update.add_argument("package", nargs="*",
                        help=_("Give a name of a package to update or leave emtpy for all"))
-               update.add_argument("--allow-archchange", action="store_true",
-                       help=_("Allow changing the architecture of packages"))
-               update.add_argument("--allow-vendorchange", action="store_true",
-                       help=_("Allow changing the vendor of packages"))
                update.add_argument("--exclude", "-x", nargs="+", default=[],
                        help=_("Exclude package from update"))
                update.set_defaults(func=self.handle_update)
@@ -261,8 +257,6 @@ class Cli(object):
                p.update(
                        ns.package,
                        excludes=ns.exclude,
-                       #allow_archchange=ns.allow_archchange,
-                       #allow_vendorchange=ns.allow_vendorchange,
                )
 
        def handle_sync(self, ns):