From: Mischa POSLAWSKY Date: Sun, 1 Feb 2015 13:46:58 +0000 (+0100) Subject: countries: prefer hardcoded details over imported data X-Git-Tag: v1.6~35 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/3dc0b09dc7b3e17b3eae7992098d1bc4edf166f7 countries: prefer hardcoded details over imported data AN and CS are currently declared at GeoNames for some reason. Ignore those for consistent reserved marking. --- diff --git a/tools/mkcountries-geonames b/tools/mkcountries-geonames index 2f12451..c203203 100755 --- a/tools/mkcountries-geonames +++ b/tools/mkcountries-geonames @@ -67,7 +67,7 @@ while (<>) { my ($iso, $name, $cont, $tld) = (split /\t/)[0, 4, 8, 9]; my @info = ($name, "c-\L$cont"); $info[3] = $tld if $tld =~ s/\A\.// and $tld ne lc $iso; - $cc{ lc $iso } = \@info; + $cc{ lc $iso } //= \@info; } $cc{io}->[2] = "Chagos Islands";