sourceforge.py 649 B

12345678910111213141516
  1. import utils.checked_system
  2. site_dir = '/home/groups/b/bo/boost/htdocs'
  3. def download( source, destination, user ):
  4. utils.checked_system( [
  5. 'rsync -v -r -z --progress %(user)s@shell.sourceforge.net:%(site_dir)s/%(source)s %(dest)s'
  6. % { 'user': user, 'site_dir': site_dir, 'source': source, 'dest': destination }
  7. ] )
  8. def upload( source, destination, user ):
  9. utils.checked_system( [
  10. 'rsync -v -r -z --progress localhost:/%(source)s %(user)s@shell.sourceforge.net:%(site_dir)s/%(dest)s'
  11. % { 'user': user, 'site_dir': site_dir, 'source': source, 'dest': destination }
  12. ] )
粤ICP备19079148号