~mvo/update-manager/not-automatic

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeController.py

  • Committer: Michael Vogt
  • Date: 2009-01-29 16:49:01 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090129164901-fmjgo6jnnbu5a6gc
* DistUpgrade/DistUpgradeController.py:
  - when commenting out third party repositories add a comment
    why they were disabled and update them to the current dist  
    to make re-enabling easier

Show diffs side-by-side

added added

removed removed

Lines of Context:
563
563
                    
564
564
            # disable anything that is not from a official mirror
565
565
            if not validMirror:
 
566
                if entry.dist == self.fromDist:
 
567
                    entry.dist = self.toDist
 
568
                entry.comment += _("disabled on upgrade to %s") % self.toDist
566
569
                entry.disabled = True
567
570
                self.sources_disabled = True
568
571
                logging.debug("entry '%s' was disabled (unknown mirror)" % entry)