Changeset 5876
- Timestamp:
- 03/10/11 11:35:52 (2 years ago)
- Files:
-
- 1 modified
-
network-scanner/trunk/umit/merger/nt_appdata.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
network-scanner/trunk/umit/merger/nt_appdata.py
r5632 r5876 49 49 50 50 backup_path = old_path + '_backup' 51 if os.path.exists(old_path): 51 if os.path.exists(old_path) and \ 52 not os.path.exists(os.path.join(old_path, "MERGED")) \ 53 and not os.path.exists(backup_path) : 52 54 # Move the old ~/.umit to ~/.umit_backup so next time this 53 55 # merger runs it will notice the absence of ~/.umit 54 shutil.move(old_path, backup_path) 56 # If UmitWeb is an old version, it will keep ~/.umit alive 57 if os.path.exists(os.path.join(old_path, "umitweb.log")): 58 shutil.copytree(old_path, backup_path) 59 # Create a file to tag that was already merged 60 file = open(os.path.join(old_path, "MERGED"), 'w') 61 file.write('') 62 file.close() 63 else: 64 shutil.move(old_path, backup_path) 55 65 56 66 new_path = os.path.join(BasePaths.HOME, BasePaths.UMIT_CFG_DIR)
