diff options
Diffstat (limited to 'Master/tlpkg/bin/tlpkginfo')
-rwxr-xr-x | Master/tlpkg/bin/tlpkginfo | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Master/tlpkg/bin/tlpkginfo b/Master/tlpkg/bin/tlpkginfo index b2e93fbcf70..387c226162d 100755 --- a/Master/tlpkg/bin/tlpkginfo +++ b/Master/tlpkg/bin/tlpkginfo @@ -342,7 +342,7 @@ sub prepare { # now we have a tds, so unzip it in a tmpdir and be sure it's readable. my $tmpdir = ©_to_tmpdir ($pkg); my $unpack = ($tds_path =~ /zip$/) - ? "unzip -q $tds_path -d $tmpdir" + ? "unzip -q -o $tds_path -d $tmpdir" : "tar -C $tmpdir -xf $tds_path"; system ($unpack) == 0 || die "unpack failed: $!\n($unpack)"; system ("chmod -R a+rX $tmpdir"); @@ -398,6 +398,11 @@ sub copy_to_tmpdir { system ("cd $pkgdir && unzip -q $zip && rm $zip"); } + if ($pkgname eq "latex") { + my $latex_doc_zip = "$CTAN/install/macros/latex/latex-doc.tds.zip"; + system ("cd $pkgdir && unzip -q -o $latex_doc_zip </dev/null"); + } + # the pl package in TeX Live is a combination of the pl-mf and # plpsfont packages on CTAN, per Thomas Esser and GUST as of many # years ago. So combine them. ctan2tds will flatten everything out, @@ -406,5 +411,6 @@ sub copy_to_tmpdir { my $plpsfont_zip = "$CTAN/language/polish/plpsfont.zip"; system ("cd $pkgdir && unzip -q $plpsfont_zip"); } + return $pkgdir; } |