diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-03-19 14:08:58 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-03-19 14:08:58 +0100 |
| commit | b08e026fea9ed453d2cbaaa402fe1bd17c6242dd (patch) | |
| tree | 858321a9e867b174e6d3006849d4711f5f12183c /aptsources | |
| parent | 2342bc7c05da5589f166496fe1112b249598648f (diff) | |
| download | python-apt-b08e026fea9ed453d2cbaaa402fe1bd17c6242dd.tar.gz | |
* aptsources/sourceslist.py:
- fix bug in invalid lines detection (LP: #324614)
Diffstat (limited to 'aptsources')
| -rw-r--r-- | aptsources/sourceslist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aptsources/sourceslist.py b/aptsources/sourceslist.py index f4d88822..29ee6430 100644 --- a/aptsources/sourceslist.py +++ b/aptsources/sourceslist.py @@ -144,7 +144,7 @@ class SourceEntry: return if line[0] == "#": self.disabled = True - pieces = line[1:].strip() + pieces = line[1:].strip().split() # if it looks not like a disabled deb line return if not pieces[0] in ("rpm", "rpm-src", "deb", "deb-src"): self.invalid = True |
