"pisi lc -r pardus-2009-devel" çalışsın da, şöyle bi yeni
componentleri görelim.
This commit is contained in:
@@ -40,13 +40,15 @@ repositories.
|
|||||||
group = optparse.OptionGroup(self.parser, _("list-components options"))
|
group = optparse.OptionGroup(self.parser, _("list-components options"))
|
||||||
group.add_option("-l", "--long", action="store_true",
|
group.add_option("-l", "--long", action="store_true",
|
||||||
default=False, help=_("Show in long format"))
|
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)
|
self.parser.add_option_group(group)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
||||||
self.init(database = True, write = False)
|
self.init(database = True, write = False)
|
||||||
|
|
||||||
l = self.componentdb.list_components()
|
l = self.componentdb.list_components(ctx.get_option('repository'))
|
||||||
l.sort()
|
l.sort()
|
||||||
for p in l:
|
for p in l:
|
||||||
component = self.componentdb.get_component(p)
|
component = self.componentdb.get_component(p)
|
||||||
|
|||||||
Reference in New Issue
Block a user