[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)
_at_@ -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 Fri Mar 27 2009 - 17:05:48 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT