diff options
| -rw-r--r-- | DistUpgrade/DistUpgradeCache.py | 3 | ||||
| -rw-r--r-- | DistUpgrade/TODO | 13 |
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 |
