<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -301,9 +301,12 @@ name_sql = &quot;&quot;&quot;INSERT INTO place_name (place_id, lang_id, name, name_hash, is_off
 
 c.execute(&quot;SELECT nextval('place_id_seq')&quot;);
 place_id = c.fetchone()[0]
+i = 0
 for iso2 in countries_map.keys():
-    sys.stdout.write(&quot;===&gt; Processing %s data... downloading... &quot; % iso2)
+    sys.stdout.write(&quot;===&gt; [%d%%] Processing %s data... downloading... &quot; % ((i * (100.0/len(countries_map)), iso2)))
     sys.stdout.flush()
+    i += 1
+
     cn_path = imputils.zipex(&quot;http://download.geonames.org/export/dump/%s.zip&quot; % iso2, &quot;%s.txt&quot; % iso2)
     
     sys.stdout.write(&quot;collating... &quot;)</diff>
      <filename>import/geonames.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f2848212253b8b8a33bc7ed01344505b8c3a4b05</id>
    </parent>
  </parents>
  <author>
    <name>Laurence Tratt</name>
    <email>laurie@tratt.net</email>
  </author>
  <url>http://github.com/ltratt/fetegeo/commit/33da8297ee82e76ee48df43dec2b3637554ce062</url>
  <id>33da8297ee82e76ee48df43dec2b3637554ce062</id>
  <committed-date>2009-04-20T01:56:15-07:00</committed-date>
  <authored-date>2009-04-20T01:56:15-07:00</authored-date>
  <message>Add a simple progress indicator to the geonames country data importer.</message>
  <tree>dac08b3e258f6111c2d221f3354839523a7a4605</tree>
  <committer>
    <name>Laurence Tratt</name>
    <email>laurie@tratt.net</email>
  </committer>
</commit>
