osc (version >= 116) - osc bl issue in "following" log

Before filing a bug report, I would like confirmation if this problem is also present on other people’s machines.

I use the osc python client (package osc) from


zypper se -s --match-exact osc

Loading repository data...
Reading installed packages...

S | Name | Type       | Version    | Arch   | Repository
--+------+------------+------------+--------+------------------
  | osc  | srcpackage | 0.117-6.1  | noarch | openSUSE-Tools
**i | osc  | package    | 0.117-6.1  | x86_64 | openSUSE-Tools**
v | osc  | package    | 0.110-1.16 | x86_64 | openSUSE-11.1-Oss
v | osc  | package    | 0.117-6.1  | i586   | openSUSE-Tools
v | osc  | package    | 0.110-1.11 | i586   | openSUSE-11.1-Oss

The command


osc bl REPOSITORY ARCHITECTURE

or


osc buildlog REPOSITORY ARCHITECTURE

can be used for checking the buildlogs and

Shows the log file of the build of a package. Can be used to follow the log while it is being written.
Needs to be called from within a package directory.
should also give you the possibility to monitor a build in progress with the new lines scrolling automatically (like a “tail -f”).

After one of the last updates (not 100% sure, must have been 0.116 or the version directly before that one) this “live monitoring” does not work any more, the command just prints the log up to its last actual line and then exits.

Downgrading to version 0.110 from openSUSE-OSS brings this feature back and the changelog of the osc-package does not show any comments that there were some changes on this, so it mostly looks like a bug in newer versions.

Can somebody check and confirm this behaviour?

After having a look into svn-repo at

https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/clientlib/python/osc/

and checking out, I found the revision that broke this “following”-feature.


------------------------------------------------------------------------
r7066 | ******* | 2009-04-09 17:52:59 +0200 (Do, 09. Apr 2009) | 3 lines

- added streamfile() method
- print_buildlog: use streamfile() to retrieve the buildlog
- do_cat: use streamfile() to retrieve a file - there's no need to have a tempfile or to read the entire file into memor
y anymore
------------------------------------------------------------------------

Revision 7063 works fine, all newer ones don’t.

Filed bug report:

https://bugzilla.novell.com/show_bug.cgi?id=497987

Fixed in latest version

rpm -q osc
osc-0.117-**9.1**.

from


zypper se -si --match-exact osc

S | Name | Typ   | Version   | Arch   | Repository
--+------+-------+-----------+--------+---------------
i | osc  | Paket | 0.117-9.1 | x86_64 | **openSUSE-Tools**