summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-03-19 14:11:00 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2009-03-19 14:11:00 +0100
commit7f4d9c450b0e715a4306397bc002aa6d0744d62d (patch)
treeaa91d32c62ae8727755282d7d6cbfd5a21b4220d
parent319f06cf7e0b81f36a364c02e891cf94ea1e585f (diff)
downloadpython-apt-7f4d9c450b0e715a4306397bc002aa6d0744d62d.tar.gz
* aptsources/sourceslist.py:
- fix bug in invalid lines detection (LP: #324614)
-rw-r--r--aptsources/sourceslist.py2
-rw-r--r--debian/changelog9
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 <michael.vogt@ubuntu.com> 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".