mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 09:16:14 +01:00
do not trace, but exit with 1 on upload error
This commit is contained in:
parent
89229112cc
commit
f91bd60f3b
@ -80,7 +80,15 @@ def putfile(url, username, password, file=None, strbuf=None):
|
||||
pass
|
||||
|
||||
if not buf: break
|
||||
conn.send(buf)
|
||||
|
||||
try:
|
||||
conn.send(buf)
|
||||
except:
|
||||
print
|
||||
print 'ERROR uploading %s' % file
|
||||
print
|
||||
os._exit(1)
|
||||
|
||||
fp.close()
|
||||
|
||||
reply, msg, headers = conn.getreply()
|
||||
|
Loading…
Reference in New Issue
Block a user