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 | |
| parent | 2342bc7c05da5589f166496fe1112b249598648f (diff) | |
| download | python-apt-b08e026fea9ed453d2cbaaa402fe1bd17c6242dd.tar.gz | |
* aptsources/sourceslist.py:
- fix bug in invalid lines detection (LP: #324614)
| -rw-r--r-- | aptsources/sourceslist.py | 2 | ||||
| -rw-r--r-- | debian/changelog | 2 |
2 files changed, 3 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 diff --git a/debian/changelog b/debian/changelog index 9df26b05..3bbae45f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -19,6 +19,8 @@ python-apt (0.7.9~exp3) experimental; urgency=low closes: #497049 * apt/package.py: - avoid uneeded interal references in the Package objects + * aptsources/sourceslist.py: + - fix bug in invalid lines detection (LP: #324614) -- |
