1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 22:56:15 +01:00
Fix "osc rq -d ..." in case of an old OBS instance. Initialize "diff"
as bytes instead of str.
This commit is contained in:
Marcus Huewe 2019-09-11 17:30:30 +02:00
commit 23b27a4025

View File

@ -2492,7 +2492,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print('Buildstatus for \'%s/%s\':' % (action.src_project, action.src_package))
print('\n'.join(get_results(apiurl, action.src_project, action.src_package)))
if opts.diff:
diff = ''
diff = b''
try:
# works since OBS 2.1
diff = request_diff(apiurl, reqid)