From b011d7ef034ae96bc6225a5f1f20d92ebd9f0c2a Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Fri, 10 Apr 2009 11:42:16 +0000 Subject: [PATCH] =?UTF-8?q?"pisi=20lc=20-r=20pardus-2009-devel"=20=C3=A7al?= =?UTF-8?q?=C4=B1=C5=9Fs=C4=B1n=20da,=20=C5=9F=C3=B6yle=20bi=20yeni=20comp?= =?UTF-8?q?onentleri=20g=C3=B6relim.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/cli/listcomponents.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pisi/cli/listcomponents.py b/pisi/cli/listcomponents.py index 17ff7fb2..c1811de3 100644 --- a/pisi/cli/listcomponents.py +++ b/pisi/cli/listcomponents.py @@ -40,13 +40,15 @@ repositories. group = optparse.OptionGroup(self.parser, _("list-components options")) group.add_option("-l", "--long", action="store_true", default=False, help=_("Show in long format")) + group.add_option("-r", "--repository", action="store", + type="string", default=None, help=_('Name of the source or package repository')) self.parser.add_option_group(group) def run(self): self.init(database = True, write = False) - l = self.componentdb.list_components() + l = self.componentdb.list_components(ctx.get_option('repository')) l.sort() for p in l: component = self.componentdb.get_component(p)