~guadalinex-members/update-manager/guadalinex-lince

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeQuirks.py

  • Committer: Michael Vogt
  • Date: 2010-04-30 15:09:50 UTC
  • Revision ID: michael.vogt@ubuntu.com-20100430150950-2qk4ngpv6m53t5fn
* DistUpgrade/DistUpgradeQuirks.py:
  - add workaround for 10_lupin infinite loop (LP: #540579)
    Thanks to Juergen Klar for providing the test-case
* DistUpgrade/10_lupin:
  - include (fixed) lucid version of 10_lupin that fixes a possible
    infinite loop on upgrade

Show diffs side-by-side

added added

removed removed

Lines of Context:
378
378
    def StartUpgrade(self):
379
379
        self._applyPatches()
380
380
        self._removeOldApportCrashes()
 
381
        self._dealWithGrubLupin()
381
382
        self._removeBadMaintainerScripts()
382
383
        self._killUpdateNotifier()
383
384
        self._killKBluetooth()
672
673
        if os.path.exists("/usr/bin/killall"):
673
674
            logging.debug("killing update-notifier")
674
675
            subprocess.call(["killall","-q","update-notifier"])
 
676
    def _dealWithGrubLupin(self):
 
677
        """ deal with 10_lupin in grub2 for bug #540579 """
 
678
        md5sum = "7a1ad1c3b869d0e3a57351d063a59778"
 
679
        path = "/etc/grub.d/10_lupin"
 
680
        if (os.path.exists(path) and
 
681
            md5(open(path).read()).hexdigest() == md5sum):
 
682
            logging.debug("copying new 10_lupin")
 
683
            shutil.copy("10_lupin", "/etc/grub.d/10_lupin")
675
684
    def _killKBluetooth(self):
676
685
        """killall kblueplugd kbluetooth (riddel requested it)"""
677
686
        if os.path.exists("/usr/bin/killall"):