summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2009-03-23 15:18:46 +0100
committerMichael Vogt <mvo@debian.org>2009-03-23 15:18:46 +0100
commitc884ff15493617480ac2fa5a4bbbd75cce3f9a51 (patch)
tree200f135ba7afd39a74c1cc1f61b11862fbb3f10d
parenteef1614c216c646ccb35c73a518ac62a78457bd4 (diff)
parentb08e026fea9ed453d2cbaaa402fe1bd17c6242dd (diff)
downloadpython-apt-c884ff15493617480ac2fa5a4bbbd75cce3f9a51.tar.gz
* aptsources/sourceslist.py:
- fix bug in invalid lines detection (LP: #324614)
-rw-r--r--aptsources/sourceslist.py2
-rw-r--r--debian/changelog2
2 files changed, 3 insertions, 1 deletions
diff --git a/aptsources/sourceslist.py b/aptsources/sourceslist.py
index 950bbd62..b1f00446 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 901f3986..e570733b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -35,6 +35,8 @@ python-apt (0.7.9) unstable; 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)
-- Michael Vogt <mvo@debian.org> Thu, 19 Mar 2009 13:39:21 +0100