summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-07-30 15:18:52 +0000
committerNorbert Preining <preining@logic.at>2009-07-30 15:18:52 +0000
commitb470752f1c63934d57bd0044f6f799b37807946f (patch)
tree3de042e174b0aab37dd2170bf518a6f691bd4a77
parent7ad978e5d751cb76a4609be01636df98ed25917f (diff)
implement tlmgr update --no-forcibly-removed
git-svn-id: svn://tug.org/texlive/trunk@14493 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl17
1 files changed, 16 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index a1348be659a..82f7a72c531 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -150,6 +150,7 @@ sub main {
"list" => 1,
"no-remove" => 1,
"no-auto-install" => 1,
+ "no-forcibly-removed" => 1,
"force" => 1,
"backupdir" => "=s",
"backup" => 1,
@@ -1509,7 +1510,11 @@ sub action_update {
next if $removals{$p};
my $tlp = $localtlpdb->get_package($p);
if (!defined($tlp)) {
- $forcermpkgs{$p} = 1;
+ if ($opts{"no-forcibly-removed"}) {
+ $newpkgs{$p} = 1;
+ } else {
+ $forcermpkgs{$p} = 1;
+ }
}
}
debug ("tlmgr: new pkgs: " . join("\n\t",keys %newpkgs) . "\n");
@@ -3651,6 +3656,16 @@ automatic installation. Note that after this the packages that
would have been auto-installed will be considered as
forcibly removed.
+=item B<--no-forcibly-removed>
+
+Under normal circumstances tlmgr will not install packages that
+it considers forcibly removed as described above. This option makes
+tlmgr consider all these packages as new and re-install them. This
+can be used to syncronize an installation with the server's
+idea of what is available by calling
+
+ tlmgr update --no-forcibly-removed --all
+
=item B<--backup> and B<--backupdir> I<directory>
These two options control the creation of backups of packages before an