Bug#239560: base-config: Set default mirror site patch
Quoting Kenshi Muto (kmuto@debian.org):
> Package: base-config
> Version: 2.17
> Severity: wishlist
> Tags: patch
>
> I created default mirror patch for apt-setup.
> This checks debian-installer/country value and choices his/her country
> first as mirror list.
>
> This patch looks dirty, but this is because it is difficult to apply
> i18n value to dynamic created items.
>
> After this report, I'll commit this patch into base-config repository.
> --
> Kenshi Muto
> kmuto@debian.org
> diff -u -r1.44 apt-setup
> --- apt-setup 23 Feb 2004 00:16:56 -0000 1.44
> +++ apt-setup 23 Mar 2004 12:34:07 -0000
> @@ -32,6 +32,42 @@
> APTCDROM Dir::Bin::apt-cdrom/d`
> eval $RES
>
> +country_i18n () {
> + # conversion country name using iso_3166 table
> + case "$1" in
> + local)
> + perl -e '
> + use Locale::gettext;
> + use POSIX;
> + textdomain("iso_3166");
> + print gettext(shift);
> + ' $2
> + ;;
> + C)
> + perl -e '
> + use Locale::gettext;
> + use POSIX;
> + textdomain("iso_3166");
> + $country=shift;
> + $ret= "";
> +
> + open (T, "/usr/share/zoneinfo/iso3166.tab");
Are you sure this is the right file to use?
IMHO, that one is rather outdated and the iso-3166 file from
iso-3166-udeb package (which we have because it is required by
countrychooser) is far more up-to-date...
Reply to: