diff options
| author | Michael Vogt <egon@top> | 2005-12-05 15:11:16 +0100 |
|---|---|---|
| committer | Michael Vogt <egon@top> | 2005-12-05 15:11:16 +0100 |
| commit | 6bf670bb229c1f2b50e5d51de073221a38e309c8 (patch) | |
| tree | d8bcfd60280dd3560fd83ad21640ebaf772833ad /SoftwareProperties | |
| parent | 0367f3c7a5293b48b67d2ef42a1cd595d9874a69 (diff) | |
| download | python-apt-6bf670bb229c1f2b50e5d51de073221a38e309c8.tar.gz | |
* bugfixes in the sources.list rewrite code
Diffstat (limited to 'SoftwareProperties')
| -rw-r--r-- | SoftwareProperties/aptsources.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/SoftwareProperties/aptsources.py b/SoftwareProperties/aptsources.py index 9a1a902d..504a490b 100644 --- a/SoftwareProperties/aptsources.py +++ b/SoftwareProperties/aptsources.py @@ -141,7 +141,10 @@ class SourceEntry: """ return the current line as string """ if self.invalid: return self.line - line = "%s %s %s" % (self.type, self.uri, self.dist) + line = "" + if self.disabled: + line = "# " + line += "%s %s %s" % (self.type, self.uri, self.dist) if len(self.comps) > 0: line += " " + " ".join(self.comps) if self.comment != "": |
