mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:Fix #4016 (No need to create an interactive shell for release directory creation)
This commit is contained in:
parent
f8d4bfd92a
commit
30e0be1170
@ -200,25 +200,10 @@ class UploadToSourceForge(Command):
|
||||
PROJECT = 'calibre'
|
||||
BASE = '/home/frs/project/c/ca/'+PROJECT
|
||||
|
||||
def create(self):
|
||||
self.info('Creating shell...')
|
||||
try:
|
||||
check_call(['ssh', '-x',
|
||||
'%s,%s@shell.sourceforge.net'%(self.USERNAME, self.PROJECT),
|
||||
'create'])
|
||||
except:
|
||||
pass
|
||||
|
||||
@property
|
||||
def rdir(self):
|
||||
return self.BASE+'/'+__version__
|
||||
|
||||
def mk_release_dir(self):
|
||||
self.info('Creating release directory...')
|
||||
check_call(['ssh', '-x',
|
||||
'%s,%s@shell.sourceforge.net'%(self.USERNAME, self.PROJECT),
|
||||
'mkdir', '-p', self.rdir])
|
||||
|
||||
def upload_installers(self):
|
||||
for x in installers():
|
||||
if not os.path.exists(x): continue
|
||||
@ -229,8 +214,6 @@ class UploadToSourceForge(Command):
|
||||
|
||||
def run(self, opts):
|
||||
self.opts = opts
|
||||
self.create()
|
||||
self.mk_release_dir()
|
||||
self.upload_installers()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user