Example #1
0
 def start_update(self):
     InstallProgress.start_update(self)
     self.last_activity = time.time()
     progress_log = self.config.getWithDefault("NonInteractive","DpkgProgressLog", False)
     if progress_log:
         fullpath = os.path.join(self.logdir, "dpkg-progress.%s.log" % self.install_run_number)
         logging.debug("writing dpkg progress log to '%s'" % fullpath)
         self.dpkg_progress_log = open(fullpath, "w")
     else:
         self.dpkg_progress_log = open(os.devnull, "w")
     self.dpkg_progress_log.write("%s: Start\n" % time.time())