]> git.ipfire.org Git - pakfire.git/commitdiff
Drop groulist command
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Dec 2016 21:49:44 +0000 (22:49 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Dec 2016 21:49:44 +0000 (22:49 +0100)
This does not have much use and is therefore
not supported any longer

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

index ca3bdf6a10a9467a40c1b7c199910e402b4fab95..c0f2fe1939b75eef9f597256c9a4fec8ea738303 100644 (file)
@@ -426,9 +426,6 @@ class Pakfire(object):
                # Process the transaction.
                t.run()
 
-       def grouplist(self, group):
-               return self.pool.grouplist(group)
-
        def provides(self, patterns):
                pkgs = []
                for pattern in patterns:
index 8135057ff9850e2077185e29697519d3de01601a..87183ff6cae11fc3e42aad678f3849f04c49f57e 100644 (file)
@@ -86,13 +86,6 @@ class Cli(object):
                        help=_("Disallow changing the architecture of packages"))
                downgrade.set_defaults(func=self.handle_downgrade)
 
-               # grouplist
-               grouplist = subparsers.add_parser("grouplist",
-                       help=_("Get list of packages that belong to the given group"))
-               grouplist.add_argument("group", nargs=1,
-                       help=_("Group name to search for"))
-               grouplist.set_defaults(func=self.handle_grouplist)
-
                # extract
                extract = subparsers.add_parser("extract",
                        help=_("Extract a package to a directory"))
@@ -272,11 +265,6 @@ class Cli(object):
                                s = pkg.dump(long=long)
                                print(s)
 
-       def handle_grouplist(self, ns):
-               with self.pakfire(ns) as p:
-                       for pkg in p.grouplist(ns.group[0]):
-                               print(" * %s" % pkg)
-
        def handle_repolist(self, ns):
                with self.pakfire(ns) as p:
                        # Get a list of all repositories.
@@ -409,13 +397,6 @@ class CliBuilder(Cli):
                        help=_("Give at least the name of one package."))
                info.set_defaults(func=self.handle_info, verbose=True)
 
-               # grouplist
-               grouplist = subparsers.add_parser("grouplist",
-                       help=_("Get list of packages that belong to the given group"))
-               grouplist.add_argument("group", nargs=1,
-                       help=_("Group name to search for"))
-               grouplist.set_defaults(func=self.handle_grouplist)
-
                # provides
                provides = subparsers.add_parser("provides",
                        help=_("Get a list of packages that provide a given file or feature"))