From 9184e9d648fb8ff3f8a437817cb67d5cf17e2010 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Sun, 26 Feb 2006 09:26:33 +0100 Subject: * Use the dist name from lsbrelease in the add channel dialog --- SoftwareProperties/aptsources.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'SoftwareProperties/aptsources.py') 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: -- cgit v1.2.3