1
0
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:
Dr. Peter Poeml 2006-04-25 16:19:42 +00:00
parent 9fbbd4f1ce
commit fde1545c1d
2 changed files with 9 additions and 2 deletions

View File

@ -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
View File

@ -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):