1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-08 10:00:05 +02:00

added new command 'osc distributions'

added new command 'osc distributions' to get info about active
and discontinued distributions.
This commit is contained in:
Danny Kukawka
2010-07-28 16:04:27 +02:00
parent f338e36158
commit 290a3f0f90
2 changed files with 57 additions and 0 deletions

View File

@@ -3173,6 +3173,24 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print '\n'.join(get_repositories(apiurl))
@cmdln.alias('dists')
@cmdln.option('-d', '--discontinued', action='store_true',
help='show discontinued distributions')
def do_distributions(self, subcmd, opts, *args):
"""${cmd_name}: Shows all available distributions
This command shows the available distributions. For active distributions
it shows the name, project and name of the repository.
usage:
osc distributions
${cmd_option_list}
"""
apiurl = self.get_api_url()
print '\n'.join(get_distibutions(apiurl, opts.discontinued))
@cmdln.hide(1)
def do_results_meta(self, subcmd, opts, *args):
print "Command results_meta is obsolete. Please use: osc results --xml"