texlive[52585] Master/texmf-dist/scripts/texlive/tlmgr.pl:
commits+karl at tug.org
commits+karl at tug.org
Thu Oct 31 19:26:15 CET 2019
Revision: 52585
http://tug.org/svn/texlive?view=revision&revision=52585
Author: karl
Date: 2019-10-31 19:26:15 +0100 (Thu, 31 Oct 2019)
Log Message:
-----------
(setup_backup_directory, action_backup): say
"would save" instead of "saving" for dry runs.
Modified Paths:
--------------
trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
Modified: trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl 2019-10-31 00:53:39 UTC (rev 52584)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl 2019-10-31 18:26:15 UTC (rev 52585)
@@ -1887,7 +1887,8 @@
# finally, if we have --backupdir, but no --backup, just enable it
$opts{"backup"} = 1 if $opts{"backupdir"};
- info("$prg: saving backups to $opts{'backupdir'}\n")
+ my $saving_verb = $opts{"dry-run"} || $opts{"list"} ? "would save" :"saving";
+ info("$prg: $saving_verb backups to $opts{'backupdir'}\n")
if $opts{"backup"} && !$::machinereadable;
return ($ret, $autobackup);
@@ -2160,8 +2161,9 @@
# for now default to xz and allow overriding with env var
my $compressorextension = $Compressors{$::progs{'compressor'}}{'extension'};
my $tlp = $localtlpdb->get_package($pkg);
- info("saving current status of $pkg to $opts{'backupdir'}/${pkg}.r" .
- $tlp->revision . ".tar.$compressorextension\n");
+ my $saving_verb = $opts{"dry-run"} ? "would save" : "saving";
+ info("$saving_verb current status of $pkg to $opts{'backupdir'}/${pkg}.r"
+ . $tlp->revision . ".tar.$compressorextension\n");
if (!$opts{"dry-run"}) {
$tlp->make_container($::progs{'compressor'}, $localtlpdb->root,
$opts{"backupdir"}, "${pkg}.r" . $tlp->revision);
@@ -2169,7 +2171,7 @@
}
}
info("no action taken due to --dry-run\n") if $opts{"dry-run"};
- # TODO_ERRORCHECKING neets checking of the above
+ # TODO_ERRORCHECKING needs checking of the above
return ($F_OK);
}
@@ -2867,7 +2869,7 @@
machine_line("-ret", $pkg, $FLAG_REVERSED_UPDATE, $rev, $mediarev, "-", "-", "-", @addargs);
} else {
if ($opts{"list"}) {
- # not issueing anything if we keep a package
+ # not issuing anything if we keep a package
upd_info($pkg, -1, $rev, $mediarevstr, "keep");
}
}
More information about the tex-live-commits
mailing list