[mirrorbrain-commits] r7935 - /trunk/mirrordoctor/mb/geoip.py

From: <poeml_at_mirrorbrain.org>
Date: Tue, 22 Dec 2009 00:48:56 -0000
Author: poeml
Date: Tue Dec 22 01:48:55 2009
New Revision: 7935

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7935&view=rev
Log:
mb new:
- fix stupid error in the detection of the best GeoIP database. A forgotten
  'break' caused the least preferable database to be chosen.

Modified:
    trunk/mirrordoctor/mb/geoip.py

Modified: trunk/mirrordoctor/mb/geoip.py
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mirrordoctor/mb/geoip.py?rev=7935&r1=7934&r2=7935&view=diff
==============================================================================
--- trunk/mirrordoctor/mb/geoip.py (original)
+++ trunk/mirrordoctor/mb/geoip.py Tue Dec 22 01:48:55 2009
_at_@ -16,6 +16,7 @@
 for i in databases:
     if os.path.exists(i):
         database = i
+        break
 
 
 def lookup_country_code(addr):




_______________________________________________
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 Tue Dec 22 2009 - 00:48:57 GMT

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