1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-05 02:56:17 +01:00

- if the commit is interrupted always delete the upload rev

This commit is contained in:
Marcus Huewe 2010-03-15 20:27:21 +01:00
parent 6a93a72635
commit cf2b0c182f

View File

@ -877,7 +877,7 @@ class Package:
query['repairlink'] = '1'
u = makeurl(self.apiurl, ['source', self.prjname, self.name], query=query)
f = http_POST(u)
except urllib2.HTTPError, e:
except Exception, e:
# delete upload revision
try:
query = { 'cmd': 'deleteuploadrev' }