mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +01:00
make 'results' command do something
This commit is contained in:
parent
9fbbd4f1ce
commit
fde1545c1d
@ -57,6 +57,10 @@ osc addremove
|
||||
# show diff
|
||||
osc diff [file]
|
||||
|
||||
# show build results (xml)
|
||||
osc results
|
||||
osc results [platform]
|
||||
|
||||
# show logfile (must be run from workingdir)
|
||||
osc log <platform> <arch>
|
||||
|
||||
|
7
osc.py
7
osc.py
@ -301,8 +301,11 @@ def main():
|
||||
|
||||
|
||||
elif cmd == 'results':
|
||||
if len(sys.argv) > 4:
|
||||
platform = sys.argv[4]
|
||||
wd = os.curdir
|
||||
package = store_read_package(wd)
|
||||
project = store_read_project(wd)
|
||||
if len(sys.argv) > 2:
|
||||
platform = sys.argv[2]
|
||||
print ''.join(get_results(project, package, platform))
|
||||
else:
|
||||
for platform in get_platforms_of_project(project):
|
||||
|
Loading…
Reference in New Issue
Block a user