diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-29 22:34:54 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-29 22:34:54 +0200 |
| commit | f7dc0ba8a869e8cbf1807bb90da82e540291806f (patch) | |
| tree | c73e67305b13579cf8019c903fbb93ad8338c80d /DistUpgrade/DistUpgradeCache.py | |
| parent | e1a1eeefa2d7a681f6583b7520031fd71daad862 (diff) | |
| download | python-apt-f7dc0ba8a869e8cbf1807bb90da82e540291806f.tar.gz | |
* DistUpgrade/DistUpgradeCache.py:
- make the edgyQuirks work for the python2.4->python transition
Diffstat (limited to 'DistUpgrade/DistUpgradeCache.py')
| -rw-r--r-- | DistUpgrade/DistUpgradeCache.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py index e5b7ed09..6dd1983d 100644 --- a/DistUpgrade/DistUpgradeCache.py +++ b/DistUpgrade/DistUpgradeCache.py @@ -167,18 +167,18 @@ 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: - if (pkg.name.startswith("python2.4") and + if (pkg.name.startswith("python2.4-") and pkg.isInstalled and not pkg.markedUpgrade): - newpkg = "python-"+pkg.name[len("python2.4"):-1] - if (self.has_key(newpkg) and - not self[newpkg].markedInstall): + basepkg = "python-"+pkg.name[len("python2.4-"):] + if (self.has_key(basepkg) and not self[basepkg].markedInstall): try: - self.markInstall(pkg.name, + self.markInstall(basepkg, "python2.4->python upgrade rule") except SystemError, e: - logging.debug("Failed to install: %s (%s)" % (newpkg, e)) + logging.debug("Failed to apply python2.4->python install: %s (%s)" % (newpkg, e)) def dapperQuirks(self): """ this function works around quirks in the breezy->dapper upgrade """ |
