]> git.ipfire.org Git - pakfire.git/commitdiff
Drop groupinstall command
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Dec 2016 21:48:01 +0000 (22:48 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Dec 2016 21:48:01 +0000 (22:48 +0100)
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 <michael.tremer@ipfire.org>
src/pakfire/base.py
src/pakfire/cli.py

index 0fdb991d6a386ce1e602049754d321747337c1e7..ca3bdf6a10a9467a40c1b7c199910e402b4fab95 100644 (file)
@@ -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)
 
index 4d6362a0875392e1334f1650439b5df93cf01d19..8135057ff9850e2077185e29697519d3de01601a 100644 (file)
@@ -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.