Skip to content
Browse files

Add support to get build logs starting from a given offset

(from Ming Xi Wu)
  • Loading branch information...
1 parent 0f3c3d8 commit 2c42287a989770ad21cfef6d8956666bf5a1e7c7 @adrianschroeter adrianschroeter committed May 14, 2009
Showing with 8 additions and 1 deletion.
  1. +1 −0 NEWS
  2. +7 −1 osc/commandline.py
View
1 NEWS
@@ -16,6 +16,7 @@
- new support for osc linkpac to specify cicount attribute
- new log/rlog output formats (CSV and XML)
- new jobhistory/buildhistory output format (CSV)
+- new option to fetch buildlogs starting at given offset
0.117:
- support checkout of single package via "osc co PACKAGE" when local dir is project
View
8 osc/commandline.py
@@ -1872,6 +1872,8 @@ def do_rprjresults(self, subcmd, opts, prj):
@cmdln.alias('bl')
+ @cmdln.option('-s', '--start', metavar='START',
+ help='get log starting from the offset')
def do_buildlog(self, subcmd, opts, platform, arch):
"""${cmd_name}: Shows the build log of a package
@@ -1891,7 +1893,11 @@ def do_buildlog(self, subcmd, opts, platform, arch):
project = store_read_project(wd)
apiurl = store_read_apiurl(wd)
- print_buildlog(apiurl, project, package, platform, arch)
+ offset=0
+ if opts.start:
+ offset = int(opts.start)
+
+ print_buildlog(apiurl, project, package, platform, arch, offset)
@cmdln.alias('rbl')

0 comments on commit 2c42287

Please sign in to comment.
Something went wrong with that request. Please try again.