This commit is contained in:
Kovid Goyal 2013-06-06 14:36:28 +05:30
parent a210f681a7
commit 8d0a9fa2e9

View File

@ -184,7 +184,8 @@ class UploadUserManual(Command): # {{{
with CurrentDir(path): with CurrentDir(path):
with ZipFile(f, 'w') as zf: with ZipFile(f, 'w') as zf:
for x in os.listdir('.'): for x in os.listdir('.'):
if x.endswith('.swp'): continue if x.endswith('.swp'):
continue
zf.write(x) zf.write(x)
if os.path.isdir(x): if os.path.isdir(x):
for y in os.listdir(x): for y in os.listdir(x):
@ -236,7 +237,7 @@ class UploadToServer(Command): # {{{
shell=True) shell=True)
check_call('ssh divok /usr/local/bin/update-calibre', check_call('ssh divok /usr/local/bin/update-calibre',
shell=True) shell=True)
check_call('''ssh divok echo %s \\> %s/latest_version'''\ check_call('''ssh divok echo %s \\> %s/latest_version'''
%(__version__, DOWNLOADS), shell=True) %(__version__, DOWNLOADS), shell=True)
check_call('ssh divok /etc/init.d/apache2 graceful', check_call('ssh divok /etc/init.d/apache2 graceful',
shell=True) shell=True)