diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-10-17 18:13:16 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-10-17 18:13:16 +0200 |
| commit | 0bc703a0d36d8c99ac8ec9118111627623c006da (patch) | |
| tree | 891ce7097df92741a5e0ba22b68c7f3cd99da1dc /DistUpgrade/DistUpgradeCache.py | |
| parent | 51001f1c9963f7054ec94621ee6b45faaacdf86d (diff) | |
| download | python-apt-0bc703a0d36d8c99ac8ec9118111627623c006da.tar.gz | |
* DistUpgrade/DistUpgradeCache.py:
- add quirks handler for xserver-xorg-input-* and bzr
Diffstat (limited to 'DistUpgrade/DistUpgradeCache.py')
| -rw-r--r-- | DistUpgrade/DistUpgradeCache.py | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py index f6e6cad8..bc79f9e2 100644 --- a/DistUpgrade/DistUpgradeCache.py +++ b/DistUpgrade/DistUpgradeCache.py @@ -166,8 +166,8 @@ class MyCache(apt.Cache): def edgyQuirks(self): """ this function works around quirks in the dapper->edgy upgrade """ logging.debug("running edgyQuirks handler") - # deal with the python2.4-$foo -> python-$foo transition for pkg in self: + # deal with the python2.4-$foo -> python-$foo transition if (pkg.name.startswith("python2.4-") and pkg.isInstalled and not pkg.markedUpgrade): @@ -178,14 +178,23 @@ class MyCache(apt.Cache): "python2.4->python upgrade rule") except SystemError, e: logging.debug("Failed to apply python2.4->python install: %s (%s)" % (basepkg, e)) - # deal with *gar*gar* hpijs - if (self.has_key("hpijs") and self["hpijs"].isInstalled and - not self["hpijs"].markedUpgrade): - try: - self.markInstall("hpijs","hpijs quirk upgrade rule") - except SystemError, e: - logging.debug("Failed to apply hpijs install (%s)" % e) + # xserver-xorg-input-$foo gives us trouble during the upgrade too + if (pkg.name.startswith("xserver-xorg-input-") and + pkg.isInstalled and + not pkg.markedUpgrade): + try: + self.markInstall(pkg.name, "xserver-xorg-input fixup rule") + except SystemError, e: + logging.debug("Failed to apply %s fixup: %s (%s)" % (pkg.name, e)) + # deal with held-backs that are unneeded + for pkgname in ["hpijs", "bzr"]: + if (self.has_key(pkgname) and self[pkgname].isInstalled and + not self[pkgname].markedUpgrade): + try: + self.markInstall(pkgname,"%s quirk upgrade rule" % pkgname) + except SystemError, e: + logging.debug("Failed to apply %s install (%s)" % (pkgname,e)) def dapperQuirks(self): |
