From: Michael Tremer Date: Wed, 7 Dec 2016 21:48:01 +0000 (+0100) Subject: Drop groupinstall command X-Git-Tag: 0.9.28~1285^2~1381 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=288edeb05ea8e4bff950e10449b7de568d4b4bda;p=pakfire.git Drop groupinstall command This was just a shortcut and I have personally never used that and there is probably only little use for it. Hence this patch drops it. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/base.py b/src/pakfire/base.py index 0fdb991d6..ca3bdf6a1 100644 --- a/src/pakfire/base.py +++ b/src/pakfire/base.py @@ -426,9 +426,6 @@ class Pakfire(object): # Process the transaction. t.run() - def groupinstall(self, group, **kwargs): - self.install("@%s" % group, **kwargs) - def grouplist(self, group): return self.pool.grouplist(group) diff --git a/src/pakfire/cli.py b/src/pakfire/cli.py index 4d6362a08..8135057ff 100644 --- a/src/pakfire/cli.py +++ b/src/pakfire/cli.py @@ -86,12 +86,6 @@ class Cli(object): help=_("Disallow changing the architecture of packages")) downgrade.set_defaults(func=self.handle_downgrade) - # groupinstall - groupinstall = subparsers.add_parser("groupinstall", - help=_("Install all packages that belong to the given group")) - groupinstall.add_argument("group", nargs=1, help=_("Group name")) - groupinstall.set_defaults(func=self.handle_groupinstall) - # grouplist grouplist = subparsers.add_parser("grouplist", help=_("Get list of packages that belong to the given group")) @@ -283,10 +277,6 @@ class Cli(object): for pkg in p.grouplist(ns.group[0]): print(" * %s" % pkg) - def handle_groupinstall(self, ns): - with self.pakfire(ns) as p: - p.groupinstall(ns.group[0]) - def handle_repolist(self, ns): with self.pakfire(ns) as p: # Get a list of all repositories.