diff options
author | Norbert Preining <preining@logic.at> | 2009-07-23 22:36:01 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2009-07-23 22:36:01 +0000 |
commit | bb5fa9c4cb3cb9eaa61b1f9b8314ca21d3678040 (patch) | |
tree | 7b0bddc62a9f1a2cfacee6427323a01cbbfd6eec /Master | |
parent | ba2012d21d337bd2e2ea84a703419897cc698434 (diff) |
more fixes to the new handling of the mirror
git-svn-id: svn://tug.org/texlive/trunk@14417 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/install-tl | 5 | ||||
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.pl | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Master/install-tl b/Master/install-tl index 84919d14957..769a540fa8a 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -351,8 +351,11 @@ $location = $opt_location; $location || ($location = "$::installerdir"); if ($location =~ m!^(ctan$|(http|ftp)://)!i) { $location =~ s,/(tlpkg|archive)?/*$,,; # remove any trailing tlpkg or / - if ($location =~ m/^($TeXLiveServerURL|ctan$)/) { + if ($location =~ m/^ctan$/i) { $location = TeXLive::TLUtils::give_ctan_mirror(); + } elsif ($location =~ m/^$TeXLiveServerURL/) { + my $mirrorbase = TeXLive::TLUtils::give_ctan_mirror_base(); + $location =~ s,^($TeXLiveServerURL|ctan$),$mirrorbase,; } $TeXLiveURL = $location; $media = 'NET'; diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index dd2e3321b23..945647da37b 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -3083,10 +3083,11 @@ sub init_tlmedia } # choose a mirror if we are asked. - if ($location =~ m,^($TeXLiveServerURL|ctan$),) { + if ($location =~ m/^ctan$/i) { + $location = give_ctan_mirror(); + } elsif ($location =~ m,^$TeXLiveServerURL,) { my $mirrorbase = TeXLive::TLUtils::give_ctan_mirror_base(); $location =~ s,^$TeXLiveServerURL,$mirrorbase,; - #$location = give_ctan_mirror(); } # this "location-url" line should not be changed since GUI programs |