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);
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)
p.update(
ns.package,
excludes=ns.exclude,
- #allow_archchange=ns.allow_archchange,
- #allow_vendorchange=ns.allow_vendorchange,
)
def handle_sync(self, ns):