summaryrefslogtreecommitdiff
path: root/SoftwareProperties/aptsources.py
diff options
context:
space:
mode:
authorSebastian Heinlein <sebastian.heinlein@web.de>2006-02-26 09:26:33 +0100
committerSebastian Heinlein <sebastian.heinlein@web.de>2006-02-26 09:26:33 +0100
commit9184e9d648fb8ff3f8a437817cb67d5cf17e2010 (patch)
treeb55607935b49b5653b65ea573dfa9245f6453f3a /SoftwareProperties/aptsources.py
parent9f1f9070d249457871a92d52eb3817c73e6fe0ac (diff)
downloadpython-apt-9184e9d648fb8ff3f8a437817cb67d5cf17e2010.tar.gz
* Use the dist name from lsbrelease in the add channel dialog
Diffstat (limited to 'SoftwareProperties/aptsources.py')
-rw-r--r--SoftwareProperties/aptsources.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/SoftwareProperties/aptsources.py b/SoftwareProperties/aptsources.py
index 397ebb38..532600fd 100644
--- a/SoftwareProperties/aptsources.py
+++ b/SoftwareProperties/aptsources.py
@@ -450,7 +450,7 @@ class SourcesList:
# templates for the add dialog
class SourceEntryTemplate(SourceEntry):
- def __init__(self,a_type,uri,dist,description,comps):
+ def __init__(self, a_type, uri, dist, description, comps):
self.comps = []
self.comps_descriptions = []
self.type = a_type
@@ -472,6 +472,8 @@ class SourceEntryTemplates:
dinfo = DistInfo (base_dir=datadir+"channels/")
+ self.dist = dinfo.dist
+
for suite in dinfo.suites:
comps = []
for comp in suite.components: