package crypto; # $Id$
use diagnostics;
use strict;
use vars qw(%url2land %land2tzs %static_mirrors %mirrors);
use MDK::Common::System;
use common;
use log;
use ftp;
%url2land = (
at => N("Austria"),
be => N("Belgium"),
ch => N("Switzerland"),
cr => N("Costa Rica"),
cz => N("Czech Republic"),
de => N("Germany"),
fr => N("France"),
gr => N("Greece"),
hu => N("Hungary"),
it => N("Italy"),
nl => N("Netherlands"),
no => N("Norway"),
pl => N("Poland"),
se => N("Sweden"),
sk => N("Slovakia"),
tw => N("Taiwan"),
);
%land2tzs = (
N("France") => [ 'Europe/Paris', 'Europe/Brussels', 'Europe/Berlin' ],
N("Belgium") => [ 'Europe/Brussels', 'Europe/Paris', 'Europe/Berlin' ],
N("Czech Republic") => [ 'Europe/Prague', 'Europe/Berlin' ],
N("Germany") => [ 'Europe/Berlin', 'Europe/Prague' ],
N("Greece") => [ 'Europe/Athens', 'Europe/Prague' ],
N("Norway") => [ 'Europe/Oslo', 'Europe/Stockholm' ],
N("Sweden") => [ 'Europe/Stockholm', 'Europe/Oslo' ],
N("United States") => [ 'America/New_York', 'Canada/Atlantic', 'Asia/Tokyo', 'Australia/Sydney', 'Europe/Paris' ],
N("Netherlands") => [ 'Europe/Amsterdam', 'Europe/Brussels', 'Europe/Berlin' ],
N("Italy") => [ 'Europe/Rome', 'Europe/Brussels', 'Europe/Paris' ],
N("Austria") => [ 'Europe/Vienna', 'Europe/Brussels', 'Europe/Berlin' ],
);
%static_mirrors = (
# "ackbar" => [ "Ackbar", "/updates", "a", "a" ],
);
%mirrors = ();
sub mirror2text { $mirrors{$_[0]} && $mirrors{$_[0]}[0] . '|' . $_[0] }
sub mirrors {
|