|
@@ -1,5 +1,7 @@
|
|
|
|
|
|
|
|
import utils.checked_system
|
|
import utils.checked_system
|
|
|
|
|
+import os
|
|
|
|
|
+import sys
|
|
|
|
|
|
|
|
site_dir = '/home/groups/b/bo/boost/htdocs'
|
|
site_dir = '/home/groups/b/bo/boost/htdocs'
|
|
|
|
|
|
|
@@ -10,7 +12,10 @@ def download( source, destination, user ):
|
|
|
] )
|
|
] )
|
|
|
|
|
|
|
|
def upload( source, destination, user ):
|
|
def upload( source, destination, user ):
|
|
|
|
|
+ if sys.platform == 'win32':
|
|
|
|
|
+ source = os.popen( 'cygpath "%s"' % source ).read().splitlines()[0]
|
|
|
|
|
+
|
|
|
utils.checked_system( [
|
|
utils.checked_system( [
|
|
|
- 'rsync -v -r -z --progress localhost:/%(source)s %(user)s@shell.sourceforge.net:%(site_dir)s/%(dest)s'
|
|
|
|
|
|
|
+ 'rsync -v -r -z --progress %(source)s %(user)s@shell.sourceforge.net:%(site_dir)s/%(dest)s'
|
|
|
% { 'user': user, 'site_dir': site_dir, 'source': source, 'dest': destination }
|
|
% { 'user': user, 'site_dir': site_dir, 'source': source, 'dest': destination }
|
|
|
] )
|
|
] )
|