home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / dist-packages / DistUpgrade / DistUpgradeFetcherSelf.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-10-12  |  1.6 KB  |  29 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import logging
  5. import shutil
  6. from DistUpgradeFetcherCore import DistUpgradeFetcherCore
  7.  
  8. class DistUpgradeFetcherSelf(DistUpgradeFetcherCore):
  9.     
  10.     def __init__(self, new_dist, progress, options, view):
  11.         DistUpgradeFetcherCore.__init__(self, new_dist, progress)
  12.         self.view = view
  13.         self.run_options += [
  14.             '--with-network']
  15.  
  16.     
  17.     def error(self, summary, message):
  18.         return self.view.error(summary, message)
  19.  
  20.     
  21.     def runDistUpgrader(self):
  22.         ''' overwrite to ensure that the log is copied '''
  23.         logging.info('runDistUpgrader() called, re-exec self')
  24.         logging.shutdown()
  25.         shutil.copy('/var/log/dist-upgrade/main.log', '/var/log/dist-upgrade/main_update_self.log')
  26.         DistUpgradeFetcherCore.runDistUpgrader(self)
  27.  
  28.  
  29.