summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeCache.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-01-25 11:31:47 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-01-25 11:31:47 +0100
commit9a25b192d880aa9d90c0293eff16415646d41710 (patch)
tree093e44151041341e6b0f1f4ad95f6b2eb40f7735 /DistUpgrade/DistUpgradeCache.py
parenteafc60dc2e45da06b0884621d4d9e4ce26e1dba8 (diff)
downloadpython-apt-9a25b192d880aa9d90c0293eff16415646d41710.tar.gz
* DistUpgrade/DistUpgradeCache.py: never remove essential packages
* DistUpgrade/TODO: some comments about network failures and sources.list
Diffstat (limited to 'DistUpgrade/DistUpgradeCache.py')
-rw-r--r--DistUpgrade/DistUpgradeCache.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py
index c8e1e9a1..2417a364 100644
--- a/DistUpgrade/DistUpgradeCache.py
+++ b/DistUpgrade/DistUpgradeCache.py
@@ -119,6 +119,9 @@ class MyCache(apt.Cache):
if pkg.markedDelete and self._inRemovalBlacklist(pkg.name):
logging.debug("The package '%s' is marked for removal but it's in the removal blacklist", pkg.name)
return False
+ if pkg.markedDelete and pkg._pkg.Essential == True:
+ logging.debug("The package '%s' is marked for removal but it's a ESSENTIAL package", pkg.name)
+ return False
return True
def _installMetaPkgs(self, view):