From 7f4d9c450b0e715a4306397bc002aa6d0744d62d Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 19 Mar 2009 14:11:00 +0100 Subject: * aptsources/sourceslist.py: - fix bug in invalid lines detection (LP: #324614) --- aptsources/sourceslist.py | 2 +- debian/changelog | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/aptsources/sourceslist.py b/aptsources/sourceslist.py index dc2a5d45..cb36d9df 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 1c0c40a3..e334fcad 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,11 @@ -python-apt (0.7.9~exp2ubuntu8) jaunty; urgency=low +bpython-apt (0.7.9~exp2ubuntu9) jaunty; urgency=low + + * aptsources/sourceslist.py: + - fix bug in invalid lines detection (LP: #324614) + + -- Michael Vogt Thu, 19 Mar 2009 14:09:50 +0100 + +bpython-apt (0.7.9~exp2ubuntu8) jaunty; urgency=low * Rebuild for python2.6. * Call dh_pycentral with "DH_PYCENTRAL=include-links". -- cgit v1.2.3