mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 22:56:15 +01:00
Merge branch 'master' of https://github.com/mgorse/osc
Fix "osc rq -d ..." in case of an old OBS instance. Initialize "diff" as bytes instead of str.
This commit is contained in:
commit
23b27a4025
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user