[mirrorbrain-commits] [opensuse-svn] r6934 - trunk/tools/download-redirector-v2/mirrordoctor

From: Novell Forge SVN <noreply_at_novell.com>
Date: Fri, 27 Mar 2009 11:04:55 -0600 (MDT)
Author: poeml
Date: 2009-03-27 11:04:53 -0600 (Fri, 27 Mar 2009)
New Revision: 6934

Modified:
   trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py
Log:
mb new: fix creation of a new mirror when AS and prefix can't be looked up


Modified: trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py
===================================================================
--- trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py	2009-03-27 16:54:27 UTC (rev 6933)
+++ trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py	2009-03-27 17:04:53 UTC (rev 6934)
@@ -149,6 +149,8 @@
 
         r = mb.asn.iplookup(self.conn, host)
         asn, prefix = r.asn, r.prefix
+        if not asn: asn = 0
+        if not prefix: ''
 
         if opts.region == '--' or opts.country == '--':
             raise ValueError('Region lookup failed. Use the -c and -r option.')

_______________________________________________
Opensuse-svn mailing list
Opensuse-svn_at_forge.novell.com
http://forge.novell.com/mailman/listinfo/opensuse-svn


_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on 2009-03-27Z17:05:48

This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:12 GMT