summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgrade.py
diff options
context:
space:
mode:
authorMichael Vogt <egon@top>2005-12-05 15:17:38 +0100
committerMichael Vogt <egon@top>2005-12-05 15:17:38 +0100
commitbf17713ea0b6bff421d305e8ae91cbb68f46ff8a (patch)
treeca3c9b0c27c8edcc1922e47389f8aeeec174b553 /DistUpgrade/DistUpgrade.py
parent62fcde2e7aea0bfe090bc36b97bd06dcf46b284a (diff)
downloadpython-apt-bf17713ea0b6bff421d305e8ae91cbb68f46ff8a.tar.gz
* better handling of the sources.list convertation
Diffstat (limited to 'DistUpgrade/DistUpgrade.py')
-rw-r--r--DistUpgrade/DistUpgrade.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/DistUpgrade/DistUpgrade.py b/DistUpgrade/DistUpgrade.py
index efe4879b..3241699a 100644
--- a/DistUpgrade/DistUpgrade.py
+++ b/DistUpgrade/DistUpgrade.py
@@ -53,10 +53,17 @@ class DistUpgradeControler(object):
def updateSourcesList(self, fromDist, to):
sources = SourcesList()
sources.backup()
+
+ fromDists = [fromDist,
+ fromDist+"-security",
+ fromDist+"-updates",
+ fromDist+"-backports"
+ ]
+
for entry in sources:
# check if it's a mirror (or offical site)
if sources.is_mirror("http://archive.ubuntu.com/ubuntu",entry.uri):
- if entry.dist == fromDist:
+ if entry.dist in fromDists:
entry.dist = to
else:
# disable all entries that are official but don't