diff options
| author | Boris Zentner | 2014-08-12 09:48:13 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-08-14 18:19:09 +0100 |
| commit | 8c1a534df1e909463a2814717a0aaad50e95b6fa (patch) | |
| tree | 6a052d0873b5a8fd04c8ce6c5f1d8e8313507889 /Library | |
| parent | fa636a81f702eb4053c257f008a73aee2434b3f6 (diff) | |
| download | homebrew-8c1a534df1e909463a2814717a0aaad50e95b6fa.tar.bz2 | |
geoip: fix country link.
The default GeoIP Country database is GeoIP.dat not GeoIPCountry.dat
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/geoip.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Formula/geoip.rb b/Library/Formula/geoip.rb index 6721f2c3e..3e1e85d60 100644 --- a/Library/Formula/geoip.rb +++ b/Library/Formula/geoip.rb @@ -54,11 +54,10 @@ class Geoip < Formula legacy_data = Pathname.new "#{HOMEBREW_PREFIX}/share/GeoIP" cp Dir["#{legacy_data}/*"], geoip_data if legacy_data.exist? - ["City", "Country"].each do |type| - full = Pathname.new "#{geoip_data}/GeoIP#{type}.dat" - next if full.exist? or full.symlink? - ln_s "GeoLite#{type}.dat", full - end + full = Pathname.new "#{geoip_data}/GeoIP.dat" + ln_s "GeoLiteCountry.dat", full unless full.exist? or full.symlink? + full = Pathname.new "#{geoip_data}/GeoIPCity.dat" + ln_s "GeoLiteCity.dat", full unless full.exist? or full.symlink? end test do |
