From 0f564a17622b9656e1deda585b42e4b5a6dbb066 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 28 Aug 2014 22:34:54 +0000 Subject: babel-hungarian: switch to generic and include README git-svn-id: svn://tug.org/texlive/trunk@35053 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/bin/tlpkginfo | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Master/tlpkg/bin/tlpkginfo') diff --git a/Master/tlpkg/bin/tlpkginfo b/Master/tlpkg/bin/tlpkginfo index eac612083d6..80ca069ff64 100755 --- a/Master/tlpkg/bin/tlpkginfo +++ b/Master/tlpkg/bin/tlpkginfo @@ -166,7 +166,6 @@ sub find_ctan_dir { $ctan_dir = "info/translations/vn" if $me eq "ntheorem-vn"; $ctan_dir = "language/armenian/armtex" if $me eq "armenian"; $ctan_dir = "language/basque" if $me eq "hyphen-basque"; - $ctan_dir = "language/hungarian/babel" if $me eq "magyar"; $ctan_dir = "language/hyphenation/dehyph" if $me eq "hyphen-german"; $ctan_dir = "language/hyphenation/elhyphen" if $me eq "hyphen-greek"; $ctan_dir = "macros/generic" if $me eq "genmisc"; @@ -261,9 +260,15 @@ sub catalogue_find_ctan_path { # which case we return undef here and let the code above find it. # (The Catalogue maintainers do not consider this a problem.) # + # Subcase of (2): package name is babel-hungarian, but CTAN path is + # babel-contrib/hungarian. Sigh. + # +warn "ctan path $ctan_path, pkg $pkgname\n"; if ($ctan_path =~ /file='true'/) { - if ($ctan_path =~ m,/$pkgname/,) { # pkg dir somewhere in path? - return undef; + (my $ctan_babel_path = $ctan_path) =~ s,babel-contrib/,babel-,; + if ($ctan_path =~ m,/$pkgname/, + || $ctan_babel_path =~ m,/$pkgname/,) { + return undef; # pkg dir somewhere in path. } else { return $do_copy # are we called by prepare() or not? ? ©_to_tmpdir ($pkgname, "$CTAN/$ctan_loc") -- cgit v1.2.3