Ubuntu Pastebin

Paste from a at Fri, 12 Aug 2016 15:10:49 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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
Download as text