This patch should fix.

-- 
Jean Schurger - http://schurger.org
GPG: http://schurger.org/Jean.asc
diff -uNr python-apt-0.7.4ubuntu7.4gnewsense11.old/aptsources/distro.py python-apt-0.7.4ubuntu7.4gnewsense11/aptsources/distro.py
--- python-apt-0.7.4ubuntu7.4gnewsense11.old/aptsources/distro.py	2009-01-30 06:11:27.000000000 -0500
+++ python-apt-0.7.4ubuntu7.4gnewsense11/aptsources/distro.py	2009-03-06 13:18:38.000000000 -0500
@@ -202,7 +202,10 @@
     def compare_mirrors(mir1, mir2):
         '''Helper function that handles comaprision of mirror urls
            that could contain trailing slashes'''
-        return re.match(mir1.strip("/ "), mir2.rstrip("/ "))
+        if mir2 is not None:
+          return re.match(mir1.strip("/ "), mir2.rstrip("/ "))
+        else:
+          return mir1
     
     # Store all available servers:
     # Name, URI, active

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
gNewSense-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/gnewsense-dev

Reply via email to