Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/geoip/files/update.py

Issue 29341151: Issue 4019 - Added "Edge" to platform choices in Issues tracker at issues1. (Closed)
Patch Set: Created May 10, 2016, 3:35 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/fluent/templates/td-gpg-key.erb ('k') | modules/logstash/files/logstash.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/geoip/files/update.py
===================================================================
--- a/modules/geoip/files/update.py
+++ b/modules/geoip/files/update.py
@@ -4,15 +4,15 @@
import zlib
downloads = {
- '/usr/share/GeoIP/GeoIP.dat': 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz',
- '/usr/share/GeoIP/GeoIPv6.dat': 'http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz',
+ '/usr/share/GeoIP/GeoIP.dat': 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz',
+ '/usr/share/GeoIP/GeoIPv6.dat': 'http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz',
- '/usr/share/GeoIP/GeoIPCity.dat': 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz',
- '/usr/share/GeoIP/GeoIPCityv6.dat': 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz',
+ '/usr/share/GeoIP/GeoIPCity.dat': 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz',
+ '/usr/share/GeoIP/GeoIPCityv6.dat': 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz',
}
for dest, source in downloads.iteritems():
- data = urllib.urlopen(source).read()
- with open(dest, "wb") as f:
- # wbit parameter value isn't properly documented, see https://stackoverflow.com/a/22310760/785541
- f.write(zlib.decompress(data, zlib.MAX_WBITS | 16))
+ data = urllib.urlopen(source).read()
+ with open(dest, "wb") as f:
+ # wbit parameter value isn't properly documented, see https://stackoverflow.com/a/22310760/785541
+ f.write(zlib.decompress(data, zlib.MAX_WBITS | 16))
« no previous file with comments | « modules/fluent/templates/td-gpg-key.erb ('k') | modules/logstash/files/logstash.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld