summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLUtils.pm
AgeCommit message (Collapse)Author
2021-05-09fmtutil/tlutils: fixes from Karl: wording/doc, better dry-runmerged/fmtutil-improvementsNorbert Preining
2021-05-09fmtutil: only try to use TEXMFSYSVAR for mktexfmtNorbert Preining
2021-05-09fmtutil/mktexfmt: switch to texmfsysvar if writableNorbert Preining
2021-05-07glorious typoKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@59127 c570f23f-e606-0410-a88d-b1316a301751
2021-05-07(download_file): also -L to dereference symlink,Karl Berry
in case. Mail from Vincenzo Luca Mantova, 7 May 2021 21:22:26. git-svn-id: svn://tug.org/texlive/trunk@59126 c570f23f-e606-0410-a88d-b1316a301751
2021-05-06(writeout): dddebug, since this happens on every package in tlpdb; other ↵Karl Berry
debugging tweaks git-svn-id: svn://tug.org/texlive/trunk@59098 c570f23f-e606-0410-a88d-b1316a301751
2021-05-06TLUtils: fix file:// URI scheme - thanks to Vincenzo MantovaNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@59095 c570f23f-e606-0410-a88d-b1316a301751
2021-05-01(query_ctan_mirror): use curl if present in preference to wget.Karl Berry
(query_ctan_mirror_curl): new fn. (query_ctan_mirror_wget): new fn, was (essentially) query_ctan_mirror. (give_ctan_mirror_base): use https for backbone https://www.ctan.org. Add some ddebugging throughout for mirror resolution. Doc, formatting tweaks. New code from Norbert. git-svn-id: svn://tug.org/texlive/trunk@59044 c570f23f-e606-0410-a88d-b1316a301751
2021-04-22Revert accidently committed changesNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@58961 c570f23f-e606-0410-a88d-b1316a301751
2021-04-22fmtutil: only try to use TEXMFSYSVAR for mktexfmtNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@58956 c570f23f-e606-0410-a88d-b1316a301751
2021-04-22fmtutil/mktexfmt: switch to texmfsysvar if writableNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@58947 c570f23f-e606-0410-a88d-b1316a301751
2021-03-05TLUtils: fixNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@58139 c570f23f-e606-0410-a88d-b1316a301751
2021-03-03(platform_name): check for darwin $os_major == 10.Karl Berry
git-svn-id: svn://tug.org/texlive/trunk@58101 c570f23f-e606-0410-a88d-b1316a301751
2021-03-02install/TLUtils: report hoursNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@58052 c570f23f-e606-0410-a88d-b1316a301751
2021-02-25(platform_name, platform_desc): universal-darwin,Karl Berry
not x86_64-darwin. git-svn-id: svn://tug.org/texlive/trunk@57921 c570f23f-e606-0410-a88d-b1316a301751
2021-02-242021 pretest setupKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@57875 c570f23f-e606-0410-a88d-b1316a301751
2021-02-172021 copyright, docKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@57772 c570f23f-e606-0410-a88d-b1316a301751
2021-01-14(_create_config_files): use our own copy() fnKarl Berry
instead of File::Copy::copy. git-svn-id: svn://tug.org/texlive/trunk@57421 c570f23f-e606-0410-a88d-b1316a301751
2020-10-06try detecting changes in fmttriggersNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@56565 c570f23f-e606-0410-a88d-b1316a301751
2020-07-0711.x -> x86_64-darwinKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@55776 c570f23f-e606-0410-a88d-b1316a301751
2020-05-17debug msg prefixes, textKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@55178 c570f23f-e606-0410-a88d-b1316a301751
2020-05-13install-tl: if envvar TEXLIVE_INSTALL_NO_RESUME is set, omit questionKarl Berry
about importing settings. TLUtils.pm (install_packages): if $media != NET, abort immediately if a package cannot be installed; no retries. Also output args if debugging. Add TLUtils:: prefix to some other debugging lines. TLPDB.pm: TLPDB:: prefix on debugging line. tl-update-tlnet: show exact install-tl command that is run. Trying shortening command prefix to basename, on most messages. git-svn-id: svn://tug.org/texlive/trunk@55126 c570f23f-e606-0410-a88d-b1316a301751
2020-05-03doc,debugKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@54993 c570f23f-e606-0410-a88d-b1316a301751
2020-04-18(platform_name, platform_desc): support amd64-unknown-midnightbsd1.2,Karl Berry
request from Nelson, 17 Apr 2020 18:35:47. Also, if the envvar TEXLIVE_OS_NAME is set, use it as-is. git-svn-id: svn://tug.org/texlive/trunk@54790 c570f23f-e606-0410-a88d-b1316a301751
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