Changeset 770 in tailor


Ignore:
Timestamp:
09/05/05 13:59:20 (8 years ago)
Author:
lele@…
Hash name:
20050905115920-97f81-e33bd4c83300527b55624eca6fd43ab5eb1362f2
Message:

Use --ignore-times with rsync, when we are going too fast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/dualwd.py

    r754 r770  
    2424from target import SyncronizableTargetWorkingDir 
    2525from shwrap import ExternalCommand 
     26from datetime import datetime 
    2627 
    2728IGNORED_METADIRS = [] 
     
    107108    def _syncTargetWithSource(self): 
    108109        cmd = ['rsync', '--delete', '--archive'] 
     110        now = datetime.now() 
     111        if hasattr(self, '_last_rsync'): 
     112            last = self._last_rsync 
     113            if not (now-last).seconds: 
     114                cmd.append('--ignore-times') 
     115        self._last_rsync = now 
    109116        for M in IGNORED_METADIRS: 
    110117            cmd.extend(['--exclude', M]) 
Note: See TracChangeset for help on using the changeset viewer.