diff options
author | Norbert Preining <preining@logic.at> | 2016-05-16 00:33:33 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2016-05-16 00:33:33 +0000 |
commit | b4bd155553e61ae082569f8d671a9f740d044634 (patch) | |
tree | 49650c4d9248e8255ecfe30a914ce03b1fd809e1 /Master/tlpkg/bin/tl-update-install-pkg | |
parent | fede31c23a0035aa8b5e5fea4e35d696b319240b (diff) |
tmp file rewrite
use one global tmp dir created with File::Temp and which will
be auto-removed. ALl other temp files and dirs are created
within this directory.
git-svn-id: svn://tug.org/texlive/trunk@41175 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-update-install-pkg')
-rwxr-xr-x | Master/tlpkg/bin/tl-update-install-pkg | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/tlpkg/bin/tl-update-install-pkg b/Master/tlpkg/bin/tl-update-install-pkg index d66c6f48325..0591a383dad 100755 --- a/Master/tlpkg/bin/tl-update-install-pkg +++ b/Master/tlpkg/bin/tl-update-install-pkg @@ -31,7 +31,7 @@ $Getopt::Long::autoabbrev=0; use TeXLive::TLPDB; use TeXLive::TLPOBJ; -use TeXLive::TLUtils qw(:DEFAULT mkdirhier copy get_system_tmpdir); +use TeXLive::TLUtils qw(:DEFAULT mkdirhier copy); use TeXLive::TLConfig; $opt_help = 0; @@ -73,7 +73,8 @@ usage if $opt_help; die "$0: extra argument(s) @ARGV; try --help if you need it.\n" if @ARGV; # determine directories. -my $sys_tmp = get_system_tmpdir() || die ("no system TMPDIR found"); +my $sys_tmp = TeXLive::TLUtils::initialize_global_tmpdir() + || die ("cannot get temporary directory"); # top directory we will generate the install pkgs in. my $tmpdir = "$sys_tmp/install-tl-$$"; |