1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-15 18:16:13 +01:00

A less confusing version of the last fix.

This commit is contained in:
Dr. Peter Poeml 2008-06-03 12:33:29 +00:00
parent 65e4d5bdd1
commit 5000e4e148

View File

@ -75,16 +75,14 @@ def run(prg):
if hasattr(e, 'osc_msg'):
print >>sys.stderr, e.osc_msg
body = None
body = e.read()
if getattr(prg.options, 'debug', None) or \
getattr(prg.conf, 'config', {}).get('debug', None):
print >>sys.stderr, e.hdrs
body = e.read()
print >>sys.stderr, body
if e.code == 400:
msg = body or e.read()
msg = msg.split('<summary>')[1]
msg = body.split('<summary>')[1]
msg = msg.split('</summary>')[0]
print >>sys.stderr, msg