summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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)
--