mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-28 13:12:11 +01:00
Merge pull request #550 from lethliel/python3_fix_get_commitlog
fix get_commitlog to decode correct.
This commit is contained in:
commit
53d3cc7bb5
@ -6330,7 +6330,7 @@ def get_commitlog(apiurl, prj, package, revision, format = 'text', meta = False,
|
|||||||
|
|
||||||
if format == 'csv':
|
if format == 'csv':
|
||||||
s = '%s|%s|%s|%s|%s|%s|%s' % (rev, user, t, srcmd5, version,
|
s = '%s|%s|%s|%s|%s|%s|%s' % (rev, user, t, srcmd5, version,
|
||||||
comment.replace('\\', '\\\\').replace('\n', '\\n').replace('|', '\\|'), requestid)
|
decode_it(comment).replace('\\', '\\\\').replace('\n', '\\n').replace('|', '\\|'), requestid)
|
||||||
r.append(s)
|
r.append(s)
|
||||||
elif format == 'xml':
|
elif format == 'xml':
|
||||||
r.append('<logentry')
|
r.append('<logentry')
|
||||||
@ -6339,7 +6339,7 @@ def get_commitlog(apiurl, prj, package, revision, format = 'text', meta = False,
|
|||||||
r.append('<date>%s</date>' % t)
|
r.append('<date>%s</date>' % t)
|
||||||
r.append('<requestid>%s</requestid>' % requestid)
|
r.append('<requestid>%s</requestid>' % requestid)
|
||||||
r.append('<msg>%s</msg>' %
|
r.append('<msg>%s</msg>' %
|
||||||
comment.replace('&', '&').replace('<', '>').replace('>', '<'))
|
decode_it(comment).replace('&', '&').replace('<', '>').replace('>', '<'))
|
||||||
r.append('</logentry>')
|
r.append('</logentry>')
|
||||||
else:
|
else:
|
||||||
if requestid:
|
if requestid:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user