summaryrefslogtreecommitdiff
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
parenteafc60dc2e45da06b0884621d4d9e4ce26e1dba8 (diff)
downloadpython-apt-9a25b192d880aa9d90c0293eff16415646d41710.tar.gz
* DistUpgrade/DistUpgradeCache.py: never remove essential packages
* DistUpgrade/TODO: some comments about network failures and sources.list
-rw-r--r--DistUpgrade/DistUpgradeCache.py3
-rw-r--r--DistUpgrade/TODO13
2 files changed, 16 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):
diff --git a/DistUpgrade/TODO b/DistUpgrade/TODO
index 018b356b..ab516769 100644
--- a/DistUpgrade/TODO
+++ b/DistUpgrade/TODO
@@ -17,3 +17,16 @@ general
- check authentication and don't upgrade anything that is not
authenticated (maybe just comment unauthenticated stuff out?)
+
+
+Robustness:
+-----------
+- automatically comment out entires in the sources.list that fail to
+ fetch.
+ Trouble: apt doesn't provide a method to map from a line in th
+ sources.list to the indexFile and python-apt dosn't proivde a way to
+ get all the metaIndexes in sources.list, nor a way to get the
+ pkgIndexFiles from the metaIndexes (metaIndex is not available in
+ python-apt at all)
+
+ \ No newline at end of file