From d8f0eef84bc05f6e87ebf50bd8780accec03eacb Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 19 Feb 2007 12:17:58 +0100 Subject: * aptsources/distro.py: - fixed crash in add_source() --- aptsources/distro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aptsources/distro.py') 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) -- cgit v1.2.3