1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-14 17:46:17 +01:00

Merge pull request #587 from lethliel/fix_lbl_with_non_utf8_encoding

[python3] fix osc lbl non utf8 encoding
This commit is contained in:
Marco Strigl 2019-06-21 10:47:57 +02:00 committed by GitHub
commit fe50d08df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5591,9 +5591,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
logfile = os.path.join(buildroot, '.build.log')
if not os.path.isfile(logfile):
raise oscerr.OscIOError(None, 'logfile \'%s\' does not exist' % logfile)
f = open(logfile, 'r')
f = open(logfile, 'rb')
f.seek(offset)
data = f.read(BUFSIZE)
data = decode_it(data)
while len(data):
if opts.strip_time or conf.config['buildlog_strip_time']:
data = buildlog_strip_time(data)