summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-02-19 12:17:58 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2007-02-19 12:17:58 +0100
commitd8f0eef84bc05f6e87ebf50bd8780accec03eacb (patch)
tree5f15d56f798f70d50ad0aab358dee1412a01d0e7
parent4d7d86374effe9bfd3a360aaaa7b09758f5c948e (diff)
downloadpython-apt-d8f0eef84bc05f6e87ebf50bd8780accec03eacb.tar.gz
* aptsources/distro.py:
- fixed crash in add_source()
-rw-r--r--aptsources/distro.py2
-rw-r--r--debian/changelog7
2 files changed, 8 insertions, 1 deletions
diff --git a/aptsources/distro.py b/aptsources/distro.py
index 9643524b..7acd1942 100644
--- a/aptsources/distro.py
+++ b/aptsources/distro.py
@@ -164,7 +164,7 @@ class Distribution:
new_source = self.sourceslist.add(type, uri, dist, comps, comment)
# if source code is enabled add a deb-src line after the new
# source
- if self.get_source_code == True and tpye == self.binary_type:
+ if self.get_source_code == True and type == self.binary_type:
self.sourceslist.add(self.source_type, uri, dist, comps, comment,
file=new_source.file,
pos=self.sourceslist.list.index(new_source)+1)
diff --git a/debian/changelog b/debian/changelog
index e5a5b660..cb818eea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-apt (0.6.20ubuntu6) feisty; urgency=low
+
+ * aptsources/distro.py:
+ - fix crash in add_source (LP#85806)
+
+ --
+
python-apt (0.6.20ubuntu5) feisty; urgency=low
* be more robust in has_repository (LP#84897)