Changeset 298:24c67ec5cdca for src/mlx/update.py
- Timestamp:
- 07/21/12 12:43:34 (12 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/update.py
r189 r298 1 # Module handling the download of updates2 3 #------------------------------------------------------------------------------4 1 5 2 from config import Config … … 15 12 if os.name=="nt": 16 13 import win32api 14 15 #------------------------------------------------------------------------------ 16 17 ## @package mlx.update 18 # 19 # Automatic update handling. 20 # 21 # The program can update itself automatically. For this purpose it maintains a 22 # manifest of the files installed containing the relative paths, sizes and 23 # checksums of each files. When the program starts up, this manifest file is 24 # downloaded from the update server and is compared to the local one. Then the 25 # updated and new files are downloaded with names that are created by appending 26 # the checksum to the actual name, so as not to overwrite any existing files at 27 # this stage. If all files are downloaded, the downloaded files are renamed to 28 # their real names. On Windows, the old file is removed first to avoid trouble 29 # with 'busy' files. If removing a file fails, the file will be moved to a 30 # temporary directory, that will be removed when the program starts the next 31 # time. 17 32 18 33 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.