This commit is contained in:
Kovid Goyal 2011-12-02 12:27:45 +05:30
parent 8935170aa2
commit cf7e268bf0

View File

@ -145,6 +145,8 @@ class UploadToGoogleCode(Command): # {{{
try: try:
path = self.upload(os.path.abspath(fname), desc, path = self.upload(os.path.abspath(fname), desc,
labels=[typ, op, 'Featured']) labels=[typ, op, 'Featured'])
except KeyboardInterrupt:
raise SystemExit(1)
except: except:
import traceback import traceback
traceback.print_exc() traceback.print_exc()
@ -327,6 +329,8 @@ class UploadToSourceForge(Command): # {{{
check_call(['rsync', '-z', '--progress', '-e', 'ssh -x', x, check_call(['rsync', '-z', '--progress', '-e', 'ssh -x', x,
'%s,%s@frs.sourceforge.net:%s'%(self.USERNAME, self.PROJECT, '%s,%s@frs.sourceforge.net:%s'%(self.USERNAME, self.PROJECT,
self.rdir+'/')]) self.rdir+'/')])
except KeyboardInterrupt:
raise SystemExit(1)
except: except:
print ('\nUpload failed, trying again in 30 seconds') print ('\nUpload failed, trying again in 30 seconds')
time.sleep(30) time.sleep(30)