1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

add -l lastbuild option also to local results command

This commit is contained in:
Adrian Schröter 2009-02-23 12:25:56 +00:00
parent c8326f8de6
commit 3cc1a12e60

View File

@ -1578,6 +1578,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
@cmdln.alias('r')
@cmdln.option('-l', '--last-build', action='store_true',
help='show last build results (succeeded/failed/unknown)')
def do_results(self, subcmd, opts, *args):
"""${cmd_name}: Shows the build results of a package
@ -1591,12 +1593,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
pacs = findpacs(args)
for pac in pacs:
print '\n'.join(get_results(pac.apiurl, pac.prjname, pac.name))
print '\n'.join(get_results(pac.apiurl, pac.prjname, pac.name, opts.last_build))
@cmdln.option('-l', '--last-build', action='store_true',
help='show last build results (succeeded/failed/unknown)')
def do_rresults(self, subcmd, opts, prj, pkg):
"""${cmd_name}: Shows the build results of a remote package