summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLUtils.pm
AgeCommit message (Collapse)Author
2020-04-06fixes for tmpdir handlingNorbert Preining
- back out changes (besides typo fixes) in tl_tempdir - don't use pattern to File::Temp::tempdir in verify_checksum git-svn-id: svn://tug.org/texlive/trunk@54629 c570f23f-e606-0410-a88d-b1316a301751
2020-04-05(tl_tmpdir): switch File::temp::tempdir()Karl Berry
invocation to use a template, hoping that that will work on Windows. git-svn-id: svn://tug.org/texlive/trunk@54621 c570f23f-e606-0410-a88d-b1316a301751
2020-03-06mention custom-bin.html, support dragonflyKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@54143 c570f23f-e606-0410-a88d-b1316a301751
2020-03-06LWP - re-establish connection in case it got disabledNorbert Preining
After 5 (TLConfig::LWPMaxErrors) errors, the LWP module is getting disabled. Re-establish a new connection and enable LWP to get higher throughput. To make sure that this doesn't loop, we limit the number of re-enabling to 10 (TLConfig::MaxLWPReinitCount) git-svn-id: svn://tug.org/texlive/trunk@54123 c570f23f-e606-0410-a88d-b1316a301751
2020-03-05try reinitializing a broken connection in download_file_lwpNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@54084 c570f23f-e606-0410-a88d-b1316a301751
2020-03-04tl-update-tlpdbs (compare_and_fix_tlpdbs): do notKarl Berry
return prematurely if set of packages is the same; may also need to check catalogue data. Doc. TLTREE.pm (_get_files_matching_glob_pattern): switch to dddebug for the matching and hits, else -vv output from tl-update-tlpdb is unusably voluminous. TLUtils.pm (dddebug): document this. git-svn-id: svn://tug.org/texlive/trunk@54067 c570f23f-e606-0410-a88d-b1316a301751
2020-03-012020 pretest setup (again)Karl Berry
git-svn-id: svn://tug.org/texlive/trunk@53987 c570f23f-e606-0410-a88d-b1316a301751
2020-02-29revert to 2019 for one more regular buildKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@53977 c570f23f-e606-0410-a88d-b1316a301751
2020-02-292020 pretest setupKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@53976 c570f23f-e606-0410-a88d-b1316a301751
2020-01-07Automatically retry to download packages again later if failed (by Yusuke ↵Norbert Preining
Terada) I often encounter the following error during network installation of TeX Live. ``` TLPDB::_install_package: downloading did not succeed Installation failed. ``` This occurs irregularly, that is, at which package the installation aborts varies every time. So, it is probably due to some random network troubles. Once the error occurs, the entire installation aborts there, and users should retry from the beginning. So I have tried implementing a workaround in the installation routine based on Hironobu Yamashita's suggestion. His idea is: If download of some packages fails, skip them and store them in @packs_again. After the installation of other packages completed, retry to install the packages stored in @packs_again. If it fails again, the installation process is to be aborted this time around. However, if the errors are due to random network troubles, the probability of an error occurring twice on the same package should be quite small. As an experiment, I tried raising network troubles intentionally during network installation. This workaround seems to work well. git-svn-id: svn://tug.org/texlive/trunk@53343 c570f23f-e606-0410-a88d-b1316a301751
2019-12-31renice, doc, archive old scriptKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@53278 c570f23f-e606-0410-a88d-b1316a301751
2019-12-24tlmgr.pl (check_texmfdbs): make silent if no problems; don't worry if aKarl Berry
directory in TEXMFDBS does not exist; accept only the exact check item names except for leading/trailing whitespace; document. (main): report the contents of the $::tldownload_server hash, not just its address. TLUtils.pm (debug_hash_str): new fn, split from debug_hash. @EXPORT it. (setup_system_one): ddebug the "trying" msg to reduce -v verbosity. git-svn-id: svn://tug.org/texlive/trunk@53225 c570f23f-e606-0410-a88d-b1316a301751
2019-12-24tl-check-fmttriggers: new option --analyze to report common dependencies.Karl Berry
(analyze_triggers): new function. TLUtils.pm: pod syntax. git-svn-id: svn://tug.org/texlive/trunk@53221 c570f23f-e606-0410-a88d-b1316a301751
2019-12-23allow global_tlpvars to be set in autopatterns and used across other ↵Karl Berry
packages; define globals for common dependencies; doc updates git-svn-id: svn://tug.org/texlive/trunk@53216 c570f23f-e606-0410-a88d-b1316a301751
2019-12-21TLUtils.pm (texdir_check): return failure if given $texdir containsKarl Berry
various characters special to kpathsea expansion, such as ,$:{};{}\ If passed new optional second argument, print a message saying so. install-menu-text.pl (directories_menu, main_menu): pass the second argument to texdir_check. TLPOBJ.pm, TeXCatalogue.pm: doc updates. tl-try-install: accept -p and -r for profile and repo; also check $profiledir/$profile.pro for convenience. TLcomma.pro: new test profile (fails, as expected). This is in response to a query from Victor Kong on the tex-live list: https://tug.org/pipermail/tex-live/2019-December/044586.html git-svn-id: svn://tug.org/texlive/trunk@53204 c570f23f-e606-0410-a88d-b1316a301751
2019-12-12(push_uniq): do member test inline instead ofKarl Berry
calling member() function; this is part of an inner loop in tl-update-tlpdb and the subroutine call overhead is significant. Saves 30-40 seconds. git-svn-id: svn://tug.org/texlive/trunk@53111 c570f23f-e606-0410-a88d-b1316a301751
2019-12-10Revert "work on win64 support"Norbert Preining
git-svn-id: svn://tug.org/texlive/trunk@53076 c570f23f-e606-0410-a88d-b1316a301751
2019-12-10work on win64 supportNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@53075 c570f23f-e606-0410-a88d-b1316a301751
2019-12-05docKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@53032 c570f23f-e606-0410-a88d-b1316a301751
2019-11-30fix tempdir invocationNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@52975 c570f23f-e606-0410-a88d-b1316a301751
2019-11-26doc tweak to force update.Karl Berry
git-svn-id: svn://tug.org/texlive/trunk@52926 c570f23f-e606-0410-a88d-b1316a301751
2019-11-16correct Perl module callsNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@52815 c570f23f-e606-0410-a88d-b1316a301751
2019-11-09TLUtils.pm (setup_programs): only use Data::Dumper if vv, not just v;Karl Berry
indent debug output lines. (copy): ddebug of every copy is too much; but ddebug dereferencing. TLPDB.pm (not_virtual_install_package): show container files instead of meaningless array ref hex, and only if ddebug. tl-try-install: placeholder for install-tl options. tl-try-makeself: doc. tl-update-nsis: remove tlpobj/ dir if we created it. tl-update-tlcritical: new option --no-containers. tltestnet: new convenience script for testing versioned containers. git-svn-id: svn://tug.org/texlive/trunk@52706 c570f23f-e606-0410-a88d-b1316a301751
2019-11-07(copy): ddebug every invocation, just to see.Karl Berry
git-svn-id: svn://tug.org/texlive/trunk@52674 c570f23f-e606-0410-a88d-b1316a301751
2019-10-29(copy): support new -L "option" argument toKarl Berry
dereference source (once) if it is a symlink. (unpack): use -L to copy in the case that we are installing from local compressed files; with the advent of versioned containers, those containers may be symlinks. git-svn-id: svn://tug.org/texlive/trunk@52568 c570f23f-e606-0410-a88d-b1316a301751
2019-10-21TLUtils.pm ($::LOGFILE): declare global to avoid warning.Karl Berry
(check_file_and_remove): rename from check_file, change caller. (Logging): new pod section for logging, diagnostic, debugging fns. (backtrace): new function to return call stack as string. (copy): backtrace if ddebugging, git-svn-id: svn://tug.org/texlive/trunk@52482 c570f23f-e606-0410-a88d-b1316a301751
2019-10-20back to relative symlinks, else symlinks in bin point to absolute installer ↵Karl Berry
directory (Alexandre Girao, 20 Oct 2019 00:13:23) git-svn-id: svn://tug.org/texlive/trunk@52465 c570f23f-e606-0410-a88d-b1316a301751
2019-09-27fix TLUtils::copy failure to deal with links properlyNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@52189 c570f23f-e606-0410-a88d-b1316a301751
2019-03-20(platform_desc) <armhf-linux>: change description, Karl Berry
suggested by Simon Dales. git-svn-id: svn://tug.org/texlive/trunk@50493 c570f23f-e606-0410-a88d-b1316a301751
2019-03-17Make mkdirhier tolerate backslashesSiep Kroonenberg
git-svn-id: svn://tug.org/texlive/trunk@50427 c570f23f-e606-0410-a88d-b1316a301751
2019-03-02tl19 darwin version updatesKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@50202 c570f23f-e606-0410-a88d-b1316a301751
2019-02-23(copy): die or warn in more failure cases.Karl Berry
(unpack): remove_container -> remove_containerfile name. git-svn-id: svn://tug.org/texlive/trunk@50107 c570f23f-e606-0410-a88d-b1316a301751
2019-01-28consistently use $0 on tldie msgs; precede with newlineKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@49855 c570f23f-e606-0410-a88d-b1316a301751
2018-11-22docKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@49226 c570f23f-e606-0410-a88d-b1316a301751
2018-11-21add forgotten newlineNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@49209 c570f23f-e606-0410-a88d-b1316a301751
2018-11-21support TEXLIVE_PREFER_OWN env var for setup_programsNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@49206 c570f23f-e606-0410-a88d-b1316a301751
2018-11-16(untar): be specific about the command that failed.Karl Berry
git-svn-id: svn://tug.org/texlive/trunk@49173 c570f23f-e606-0410-a88d-b1316a301751
2018-10-23TLUtils: don't die on empty location, but return empty arrayNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@48975 c570f23f-e606-0410-a88d-b1316a301751
2018-10-12(give_ctan_mirror_base): down to one backbone (www.ctan.org)Karl Berry
git-svn-id: svn://tug.org/texlive/trunk@48892 c570f23f-e606-0410-a88d-b1316a301751
2018-08-04more program setup debug outputNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@48344 c570f23f-e606-0410-a88d-b1316a301751
2018-07-20make sure we use TL provided tar on WindowsNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@48233 c570f23f-e606-0410-a88d-b1316a301751
2018-07-19setup_programs: prefer system versions, simplify codeNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@48226 c570f23f-e606-0410-a88d-b1316a301751
2018-07-03more detailed error checking during signature verificationNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@48130 c570f23f-e606-0410-a88d-b1316a301751
2018-06-12stupid errorNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@47994 c570f23f-e606-0410-a88d-b1316a301751
2018-06-11more fixes for code cleanupNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@47987 c570f23f-e606-0410-a88d-b1316a301751
2018-06-11fix typo in compressor reworkNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@47986 c570f23f-e606-0410-a88d-b1316a301751
2018-06-11code cleanup and streamlining (use %Compressors)Norbert Preining
git-svn-id: svn://tug.org/texlive/trunk@47985 c570f23f-e606-0410-a88d-b1316a301751
2018-06-11use unified system_pipe for decompressing instead of repeating codeNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@47984 c570f23f-e606-0410-a88d-b1316a301751
2018-05-31xz -d some more; dump ::progs at ddebug levelsKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@47887 c570f23f-e606-0410-a88d-b1316a301751
2018-05-30correct env var in documentationNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@47873 c570f23f-e606-0410-a88d-b1316a301751