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/install-tl | |
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/install-tl')
-rwxr-xr-x | Master/install-tl | 5 |
1 files changed, 4 insertions, 1 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'; |