summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aptsources/sourceslist.py2
-rw-r--r--debian/changelog5
2 files changed, 5 insertions, 2 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 0015319c..3dc359c7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -31,7 +31,8 @@ python-apt (0.7.9) unstable; urgency=low
- add Recommends to iso-codes (for iso_3166.xml)
* apt/package.py:
- make sure to set the defaulttimeout back to the
- original value (in getChangelog(), LP: #314212)
+ original value (in getChangelog(), LP: #314212)
+ Closes: #513315
* apt/cache.py:
- when setting a alternative rootdir, read the
config from it as well
@@ -43,6 +44,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