summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLMedia.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/TeXLive/TLMedia.pm')
-rw-r--r--Master/tlpkg/TeXLive/TLMedia.pm12
1 files changed, 9 insertions, 3 deletions
diff --git a/Master/tlpkg/TeXLive/TLMedia.pm b/Master/tlpkg/TeXLive/TLMedia.pm
index bddbdd529fd..f1eb9062e45 100644
--- a/Master/tlpkg/TeXLive/TLMedia.pm
+++ b/Master/tlpkg/TeXLive/TLMedia.pm
@@ -106,6 +106,12 @@ sub install_package {
# get options about src/doc splitting from $totlpdb
my $opt_src = $totlpdb->option_srcfiles;
my $opt_doc = $totlpdb->option_docfiles;
+ my $real_opt_doc = $opt_doc;
+ if ($tlpobj->category =~ m/documentation/i) {
+ # we do install documenation files for category Documentation
+ # even if opt_doc is false
+ $real_opt_doc = 1;
+ }
tllog($::LOG_NORMAL, "install: $pkg\n");
foreach my $h (@::install_packages_hook) {
&$h("install: $package");
@@ -127,7 +133,7 @@ sub install_package {
push @installfiles, $_;
}
}
- if ($opt_doc) {
+ if ($real_opt_doc) {
foreach ($tlpobj->docfiles) {
# s!^!$location/!;
push @installfiles, $_;
@@ -164,7 +170,7 @@ sub install_package {
$srccontainer =~ s/(\.tar\.lzma|\.zip)$/.source$1/;
$self->_install_package($srccontainer,\@installfiles,$totlpdb);
}
- if ($container_doc_split && $opt_doc &&
+ if ($container_doc_split && $real_opt_doc &&
($pkg !~ m/\./) && $tlpobj->docfiles) {
my $doccontainer = $container;
$doccontainer =~ s/(\.tar\.lzma|\.zip)$/.doc$1/;
@@ -176,7 +182,7 @@ sub install_package {
if (!$opt_src) {
$tlpobj->clear_srcfiles;
}
- if (!$opt_doc) {
+ if (!$real_opt_doc) {
$tlpobj->clear_docfiles;
}
# we have to write out the tlpobj file since it is contained in the