summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/texlive/tlmgr.pl
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-09-15 22:08:36 +0900
committerNorbert Preining <norbert@preining.info>2023-09-15 22:08:36 +0900
commit63837bacb6151e1ebb15829e6e559fcd2389cd1c (patch)
treefe252dd4a9159e5b0b1f3e34f19eb8e74e9ab68e /Master/texmf-dist/scripts/texlive/tlmgr.pl
parent6701ce2c59ac18347d73a7252042ae9ba58ab082 (diff)
tlmgr: on update test that we can remove files (deal with ro dirs)dev/check-dir-before-remove
Diffstat (limited to 'Master/texmf-dist/scripts/texlive/tlmgr.pl')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index d0d4456bce1..db5753c0efa 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -3371,8 +3371,11 @@ sub action_update {
if ($pkg =~ m/$CriticalPackagesRegexp/) {
debug("Not removing critical package $pkg\n");
} else {
- $localtlpdb->remove_package($pkg,
- "remove-warn-files" => \%do_warn_on_move);
+ if (! $localtlpdb->remove_package($pkg,
+ "remove-warn-files" => \%do_warn_on_move)) {
+ info("aborted\n") unless $::machinereadable;
+ next;
+ }
}
if ($remotetlpdb->install_package($pkg, $localtlpdb)) {
# installation succeeded because we got a reference
@@ -10253,4 +10256,4 @@ $Id$
### tab-width: 2
### indent-tabs-mode: nil
### End:
-# vim:set tabstop=2 expandtab: #
+# vim:set tabstop=2 shiftwidth=2 expandtab: #