diff options
author | Norbert Preining <preining@logic.at> | 2008-05-01 11:59:52 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2008-05-01 11:59:52 +0000 |
commit | 97d63c8816fda8516ce09193d64bf1ad1e6732a9 (patch) | |
tree | 2f08a697f4680f1467893a857f4701820cc4b4fd | |
parent | 58cecd11dfec30518da026ffcc7e3fe898631b15 (diff) |
remove a package before updating it
git-svn-id: svn://tug.org/texlive/trunk@7777 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/texmf/scripts/texlive/tl-package-manager.pl | 10 |
1 files changed, 9 insertions, 1 deletions
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 <key> <value> # 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) { |