From e1e5ecae0843c86ef3456fa2df1805a1217a1a23 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 22 Apr 2012 14:47:11 +0200 Subject: [PATCH] Revert "[eit] query: fix bug with --in argument for revdeps and needed" This reverts commit e29c3dcd56d8b214ccea38eddeb85645a8e10b1d. --- server/eit/commands/query.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/server/eit/commands/query.py b/server/eit/commands/query.py index 622967595..2e949cf34 100644 --- a/server/eit/commands/query.py +++ b/server/eit/commands/query.py @@ -68,9 +68,8 @@ class EitQuery(EitCommand): needed_parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) - needed_parser.add_argument("--in", metavar="", - help=_("query into given repository only"), - dest="inrepo", default=None) + needed_parser.add_argument("inrepo", action="store_const", + const=None) needed_parser.add_argument("packages", nargs='+', metavar="", help=_("package names")) @@ -87,9 +86,8 @@ class EitQuery(EitCommand): revdeps_parser.add_argument("--bdeps", "-b", action="store_true", default=False, help=_('include build dependencies')) - revdeps_parser.add_argument("--in", metavar="", - help=_("query into given repository only"), - dest="inrepo", default=None) + revdeps_parser.add_argument("inrepo", action="store_const", + const=None) revdeps_parser.add_argument("packages", nargs='+', metavar="", help=_("package names"))