~mvo/update-manager/pae-kernel-transtion

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeViewNonInteractive.py

  • Committer: Michael Vogt
  • Date: 2009-06-17 09:39:34 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090617093934-if3a8e95eb6p2nxg
  - add "NonInteractive/DebugBrokenScripts" option that will re-run
    failed maintainer scripts with debug options
* DistUpgrade/DistUpgrade.cfg:
  - add defaults for the NonInteractive section that match the 
    interactive upgrades (for better landscape support)

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
        # if the new preinst fails, its not yet in /var/lib/dpkg/info
88
88
        # so this is inaccurate as well
89
89
        logging.error("got a error from dpkg for pkg: '%s': '%s'" % (pkg, errormsg))
 
90
        if not self.config.getboolean("NonInteractive","DebugBrokenScripts"):
 
91
            return
90
92
        environ = copy.copy(os.environ)
91
93
        environ["PYCENTRAL"] = "debug"
92
94
        cmd = []
173
175
    def startUpdate(self):
174
176
        InstallProgress.startUpdate(self)
175
177
        self.last_activity = time.time()
176
 
        progress_log = self.config.getWithDefault("NonInteractive","DpkgProgressLog", False)
 
178
        progress_log = self.config.getboolean("NonInteractive","DpkgProgressLog")
177
179
        if progress_log:
178
180
            fullpath = os.path.join(self.logdir, "dpkg-progress.%s.log" % self.install_run_number)
179
181
            logging.debug("writing dpkg progress log to '%s'" % fullpath)