mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -64,7 +64,7 @@ def upload_signatures():
|
|||||||
|
|
||||||
class ReUpload(Command): # {{{
|
class ReUpload(Command): # {{{
|
||||||
|
|
||||||
description = 'Re-uplaod any installers present in dist/'
|
description = 'Re-upload any installers present in dist/'
|
||||||
|
|
||||||
sub_commands = ['upload_installers']
|
sub_commands = ['upload_installers']
|
||||||
|
|
||||||
@ -76,7 +76,6 @@ class ReUpload(Command): # {{{
|
|||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
|
|
||||||
def run(self, opts):
|
def run(self, opts):
|
||||||
upload_signatures()
|
|
||||||
for x in installers():
|
for x in installers():
|
||||||
if os.path.exists(x):
|
if os.path.exists(x):
|
||||||
os.remove(x)
|
os.remove(x)
|
||||||
@ -131,7 +130,7 @@ class UploadInstallers(Command): # {{{
|
|||||||
|
|
||||||
def add_options(self, parser):
|
def add_options(self, parser):
|
||||||
parser.add_option('--replace', default=False, action='store_true', help=
|
parser.add_option('--replace', default=False, action='store_true', help=
|
||||||
'Replace existing installers, when uploading to google')
|
'Replace existing installers')
|
||||||
|
|
||||||
def run(self, opts):
|
def run(self, opts):
|
||||||
all_possible = set(installers())
|
all_possible = set(installers())
|
||||||
@ -149,6 +148,8 @@ class UploadInstallers(Command): # {{{
|
|||||||
try:
|
try:
|
||||||
self.upload_to_staging(tdir, backup, files)
|
self.upload_to_staging(tdir, backup, files)
|
||||||
self.upload_to_calibre()
|
self.upload_to_calibre()
|
||||||
|
if opts.replace:
|
||||||
|
upload_signatures()
|
||||||
self.upload_to_sourceforge()
|
self.upload_to_sourceforge()
|
||||||
self.upload_to_dbs()
|
self.upload_to_dbs()
|
||||||
# self.upload_to_google(opts.replace)
|
# self.upload_to_google(opts.replace)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user