diff --git a/aptsources/distro.py b/aptsources/distro.py
index 2e58658..7ffe030 100644
--- a/aptsources/distro.py
+++ b/aptsources/distro.py
@@ -79,7 +79,7 @@ class Distribution(object):
# find the distro template
for template in self.sourceslist.matcher.templates:
if (self.is_codename(template.name) and
- template.distribution == self.id):
+ template.distribution.lower() == self.id):
#print "yeah! found a template for %s" % self.description
#print template.description, template.base_uri, \
# template.components