summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeConfigParser.py
diff options
context:
space:
mode:
authorSebastian Heinlein <sebi@sebi-pc>2006-09-26 10:47:19 +0200
committerSebastian Heinlein <sebi@sebi-pc>2006-09-26 10:47:19 +0200
commitdd3fbec4f2bb0ecbf237b058f85175c5d0befce9 (patch)
treee00d94e7c77b45f8ac9792a9c80a68e2a2391d7c /DistUpgrade/DistUpgradeConfigParser.py
parent4de7b5c16a98fcc5e6d9ff4d32ca289c44a5192b (diff)
parent90a9b9f0faf09a401693f7cfcbd362ff62559929 (diff)
downloadpython-apt-dd3fbec4f2bb0ecbf237b058f85175c5d0befce9.tar.gz
* merge with mvo
Diffstat (limited to 'DistUpgrade/DistUpgradeConfigParser.py')
-rw-r--r--DistUpgrade/DistUpgradeConfigParser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/DistUpgrade/DistUpgradeConfigParser.py b/DistUpgrade/DistUpgradeConfigParser.py
index 6879dfda..d5391939 100644
--- a/DistUpgrade/DistUpgradeConfigParser.py
+++ b/DistUpgrade/DistUpgradeConfigParser.py
@@ -2,10 +2,10 @@ from ConfigParser import ConfigParser, NoOptionError
class DistUpgradeConfig(ConfigParser):
- def __init__(self, datadir):
+ def __init__(self, datadir, name="DistUpgrade.cfg"):
ConfigParser.__init__(self)
self.datadir=datadir
- self.read([datadir+'/DistUpgrade.cfg'])
+ self.read([datadir+"/"+name])
def getlist(self, section, option):
try:
tmp = self.get(section, option)