mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 16:25:49 +01:00
Decrease the interval between uploading installers and their new signatures when doing a re-upload
This commit is contained in:
parent
bee4b2b9c7
commit
212091eea6
1 changed files with 4 additions and 3 deletions
|
|
@ -64,7 +64,7 @@ def upload_signatures():
|
|||
|
||||
class ReUpload(Command): # {{{
|
||||
|
||||
description = 'Re-uplaod any installers present in dist/'
|
||||
description = 'Re-upload any installers present in dist/'
|
||||
|
||||
sub_commands = ['upload_installers']
|
||||
|
||||
|
|
@ -76,7 +76,6 @@ def pre_sub_commands(self, opts):
|
|||
raise SystemExit(1)
|
||||
|
||||
def run(self, opts):
|
||||
upload_signatures()
|
||||
for x in installers():
|
||||
if os.path.exists(x):
|
||||
os.remove(x)
|
||||
|
|
@ -131,7 +130,7 @@ class UploadInstallers(Command): # {{{
|
|||
|
||||
def add_options(self, parser):
|
||||
parser.add_option('--replace', default=False, action='store_true', help=
|
||||
'Replace existing installers, when uploading to google')
|
||||
'Replace existing installers')
|
||||
|
||||
def run(self, opts):
|
||||
all_possible = set(installers())
|
||||
|
|
@ -149,6 +148,8 @@ def run(self, opts):
|
|||
try:
|
||||
self.upload_to_staging(tdir, backup, files)
|
||||
self.upload_to_calibre()
|
||||
if opts.replace:
|
||||
upload_signatures()
|
||||
self.upload_to_sourceforge()
|
||||
self.upload_to_dbs()
|
||||
# self.upload_to_google(opts.replace)
|
||||
|
|
|
|||
Loading…
Reference in a new issue