From 8b0a2c2440b86f7a080298a61ba649fe95b719fe Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 26 May 2018 16:05:46 +0000 Subject: avoid some extra-long lines. git-svn-id: svn://tug.org/texlive/trunk@47847 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/TeXLive/TLUtils.pm | 63 ++++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 26 deletions(-) (limited to 'Master/tlpkg/TeXLive') diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index 633fa8630da..38573e0371f 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -2075,7 +2075,8 @@ sub check_file { my ($xzfile, $checksum, $checksize) = @_; debug("check_file $xzfile, $checksum, $checksize\n"); if (!$checksum && !$checksize) { - tlwarn("TLUtils::check_file: neither checksum nor checksize available for $xzfile, cannot check integrity!\n"); + tlwarn("TLUtils::check_file: neither checksum nor checksize " . + "available for $xzfile, cannot check integrity"); return; } # only run checksum tests if we can actually compute the checksum @@ -2153,7 +2154,8 @@ sub unpack { } # only check the necessary compressor program - my $decompressor = TeXLive::TLUtils::quotify_path_with_spaces($::progs{$DecompressorProgram{$type}}); + my $decompressor = TeXLive::TLUtils::quotify_path_with_spaces( + $::progs{$DecompressorProgram{$type}}); my @decompressorArgs = @{$DecompressorArgs{$type}}; if (!defined($decompressor)) { return (0, "programs not set up properly"); @@ -2340,10 +2342,9 @@ sub setup_programs { $::progs{'tar'} = "tar"; if (!defined($platform) || ($platform eq "")) { - # we assume that we run from uncompressed media, so we can call platform() and - # thus also the config.guess script - # but we have to setup $::installerdir because the platform script - # relies on it + # we assume that we run from uncompressed media, so we can call + # platform() and thus also the config.guess script but we have to + # setup $::installerdir because the platform script relies on it $::installerdir = "$bindir/../.."; $platform = platform(); } @@ -2355,18 +2356,20 @@ sub setup_programs { my $defprog = $FallbackDownloaderProgram{$dltype}; # do not warn on errors push @working_downloaders, $dltype if - setup_one(($isWin ? "w32" : "unix"), $defprog, "$bindir/$dltype/$defprog.$platform", "--version", 1); + setup_one(($isWin ? "w32" : "unix"), $defprog, + "$bindir/$dltype/$defprog.$platform", "--version", 1); } $::progs{'working_downloaders'} = [ @working_downloaders ]; my @working_compressors; for my $comptype (@AcceptedCompressors) { my $defprog = $CompressorProgram{$comptype}; # do not warn on errors - if (setup_one(($isWin ? "w32" : "unix"), $defprog, "$bindir/$comptype/$defprog.$platform", "--version", 1)) { + if (setup_one(($isWin ? "w32" : "unix"), $defprog, + "$bindir/$comptype/$defprog.$platform", "--version", 1)) { push @working_compressors, $comptype; # also set up $::{'compressor'} if not already done - # this selects the first one - # but we might reset this depending on TEXLIVE_COMPRESSOR setting, see below + # this selects the first one, but we might reset this depending on + # TEXLIVE_COMPRESSOR setting, see below defined($::progs{'compressor'}) || ($::progs{'compressor'} = $comptype); } } @@ -2374,25 +2377,33 @@ sub setup_programs { # check whether selected downloader/compressor is working # for downloader we allow 'lwp' as setting, too - if ($ENV{'TEXLIVE_DOWNLOADER'} && $ENV{'TEXLIVE_DOWNLOADER'} ne 'lwp' && - !TeXLive::TLUtils::member($ENV{'TEXLIVE_DOWNLOADER'}, @{$::progs{'working_downloaders'}})) { - tlwarn("Selected download program TEXLIVE_DOWNLOADER=$ENV{'TEXLIVE_DOWNLOADER'} is not working!\n"); - tlwarn("Please choose a different downloader or don't set TEXLIVE_DOWNLOADER at all.\n"); - tlwarn("Detected working downloaders @{$::progs{'working_downloaders'}}\n"); + if ($ENV{'TEXLIVE_DOWNLOADER'} + && $ENV{'TEXLIVE_DOWNLOADER'} ne 'lwp' + && !TeXLive::TLUtils::member($ENV{'TEXLIVE_DOWNLOADER'}, + @{$::progs{'working_downloaders'}})) { + tlwarn(<