summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-12-16 07:06:01 +0000
committerNorbert Preining <preining@logic.at>2009-12-16 07:06:01 +0000
commit7a3ba3138290c49da244552d62e88a08b2d14e78 (patch)
treeed48216d1a7539d48f0eb44ca9f2bd08fbd0f51c /Master/texmf
parent1501e3ba218f0698b94682df440b76ff94d64606 (diff)
implement --persistent-downloads using LWP
git-svn-id: svn://tug.org/texlive/trunk@16424 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index 94ce675604a..7a12456bfda 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -82,6 +82,7 @@ use TeXLive::TLPDB;
use TeXLive::TLPOBJ;
use TeXLive::TLUtils;
use TeXLive::TLWinGoo;
+use TeXLive::TLDownload;
TeXLive::TLUtils->import(qw(member info give_ctan_mirror win32 dirname
mkdirhier copy log debug tlcmp));
use TeXLive::TLPaper;
@@ -124,6 +125,7 @@ sub main {
"location|repository|repo" => "=s",
"machine-readable" => 1,
"package-logfiles" => "=s",
+ "persistent-downloads" => 1,
"pause" => 1,
"version" => 1,
"help|h|?" => 1);
@@ -320,7 +322,14 @@ sub main {
$loadmediasrcerror = "Cannot load TeX Live database from ";
+ #
+ # if we are asked to use persistent connections try to start it here
+ #
+ TeXLive::TLUtils::setup_persistent_downloads()
+ if $opts{'persistent-downloads'};
+
execute_action($action, @ARGV);
+
# end of main program.
} # end main
@@ -4234,6 +4243,15 @@ L<option> action).
For backward compatibility and convenience, C<--location> and C<--repo>
are accepted as aliases for this option.
+=item B<-persistent-downloads>
+
+Try to set up a persistent connection using Net::LWP if
+you are installing from the network. This will keep the connection
+between your computer and the server open for the whole session and
+reuse this connection.
+
+This option should reduce the probability to have connection problems.
+
=item B<--gui> [I<action>]
You can give this option together with an action to be brought directly