summaryrefslogtreecommitdiff
path: root/aptsources/distro.py
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 /aptsources/distro.py
parent4d7d86374effe9bfd3a360aaaa7b09758f5c948e (diff)
downloadpython-apt-d8f0eef84bc05f6e87ebf50bd8780accec03eacb.tar.gz
* aptsources/distro.py:
- fixed crash in add_source()
Diffstat (limited to 'aptsources/distro.py')
-rw-r--r--aptsources/distro.py2
1 files changed, 1 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)