update_config.py
branchv0.7.x
changeset 711 2a75058fc064
parent 676 2bc11dada296
parent 705 9149e0249c25
equal deleted inserted replaced
700:0a06f7b1da6a 711:2a75058fc064
     1 #!/usr/bin/env python3
     1 #!/usr/bin/env python3
     2 # -*- coding: UTF-8 -*-
     2 # -*- coding: UTF-8 -*-
     3 # Copyright (c) 2008 - 2013, Pascal Volk
     3 # Copyright (c) 2008 - 2014, Pascal Volk
     4 # See COPYING for distribution information.
     4 # See COPYING for distribution information.
     5 
     5 
     6 import os
     6 import os
     7 os.sys.path.remove(os.sys.path[0])
     7 os.sys.path.remove(os.sys.path[0])
     8 from time import time
     8 from time import time
    52 
    52 
    53 
    53 
    54 def update(cp):
    54 def update(cp):
    55     if VERSION == '0.5.2':
    55     if VERSION == '0.5.2':
    56         upd_052(cp)
    56         upd_052(cp)
    57     elif VERSION == '0.6.0':
    57     elif VERSION in ('0.6.0', '0.6.1'):
    58         os.sys.stdout.write('info: vmm.cfg: nothing to do for version %s\n' %
    58         os.sys.stdout.write('info: vmm.cfg: nothing to do for version %s\n' %
    59                             VERSION)
    59                             VERSION)
    60         return
    60         return
    61     else:
    61     else:
    62         os.sys.stderr.write('error: the version %s is not supported by this '
    62         os.sys.stderr.write('error: the version %s is not supported by this '