From ca0e507a0a79afc9ffa63e3d3d1dbf4e2f3975b4 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 3 Jul 2013 04:25:56 +0000 Subject: fix borken backup container for broken RELOC package in local tlpdb git-svn-id: svn://tug.org/texlive/trunk@31082 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/tlmgr.pl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Master/texmf-dist/scripts') diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index eea78bff7d1..45d8d0b0688 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -2811,6 +2811,15 @@ sub action_update { "/$totalnr] auto-remove: $p ... "); } if (!$opts{"dry-run"}) { + # older tlmgr forgot to clear the relocated bit when saving a tlpobj + # into the local tlpdb, although the paths were rewritten. + # We have to clear this bit otherwise the make_container calls below + # for creating the backup will create some rubbish! + # Same as further down in the update part! + if ($pkg->relocated) { + debug("tlmgr: warn, relocated bit set for $p, but that is wrong!\n"); + $pkg->relocated(0); + } if ($opts{"backup"}) { $pkg->make_container("xz", $root, $opts{"backupdir"}, -- cgit v1.2.3