countries: prefer hardcoded details over imported data
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 1 Feb 2015 13:46:58 +0000 (14:46 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sun, 1 Feb 2015 17:34:57 +0000 (18:34 +0100)
AN and CS are currently declared at GeoNames for some reason.
Ignore those for consistent reserved marking.

tools/mkcountries-geonames

index 2f124513f687c2f61b9ba7cb908173552b783d8b..c20320347ad67098dd03736019ee66fcd0458c53 100755 (executable)
@@ -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";