From 97d63c8816fda8516ce09193d64bf1ad1e6732a9 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 1 May 2008 11:59:52 +0000 Subject: remove a package before updating it git-svn-id: svn://tug.org/texlive/trunk@7777 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf/scripts/texlive/tl-package-manager.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Master/texmf/scripts/texlive/tl-package-manager.pl b/Master/texmf/scripts/texlive/tl-package-manager.pl index dbdecbafbc1..f140b78f02e 100755 --- a/Master/texmf/scripts/texlive/tl-package-manager.pl +++ b/Master/texmf/scripts/texlive/tl-package-manager.pl @@ -7,10 +7,14 @@ # or any later version. # # TODO: +# - (idea/problem) every time we re-generate the updmap/fmtutil files +# with generate ... we destroy everything the admin/user might have +# added via --enable or --disable. That is bad. +# What about doing *all* (i.e., at installation time and at update +# time) via enable/disable calls? # - ordering or collections removal (see below for details) # - (?) removal does not remove created format files from TEXMFSYSVAR # - other features: dependency check?, ...? -# - improve search function # - cmd # default # sets the options in texlive.tlpdb @@ -279,6 +283,10 @@ if ($action =~ m/^generate$/i) { if ($opt_dry) { print "Installing $pkg\n"; } else { + # first remove the package, then reinstall it + # this way we get rid of useless files + # force the deinstallation since we will reinstall it + $ret |= &remove_package($pkg, $localtlpdb, 1); $ret |= $tlmediasrc->install_package($pkg, $localtlpdb, $opt_nodepends); } } elsif ($rev > $mediarev) { -- cgit v1.2.3