mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-28 07:26:15 +01:00
add -l lastbuild option also to local results command
This commit is contained in:
parent
c8326f8de6
commit
3cc1a12e60
@ -1578,6 +1578,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
|
|
||||||
@cmdln.alias('r')
|
@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):
|
def do_results(self, subcmd, opts, *args):
|
||||||
"""${cmd_name}: Shows the build results of a package
|
"""${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)
|
pacs = findpacs(args)
|
||||||
|
|
||||||
for pac in pacs:
|
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',
|
@cmdln.option('-l', '--last-build', action='store_true',
|
||||||
help='show last build results (succeeded/failed/unknown)')
|
help='show last build results (succeeded/failed/unknown)')
|
||||||
|
|
||||||
def do_rresults(self, subcmd, opts, prj, pkg):
|
def do_rresults(self, subcmd, opts, prj, pkg):
|
||||||
"""${cmd_name}: Shows the build results of a remote package
|
"""${cmd_name}: Shows the build results of a remote package
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user