diff options
author | Norbert Preining <preining@logic.at> | 2012-04-23 04:20:08 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2012-04-23 04:20:08 +0000 |
commit | fd629364cb783750f56b0e3f316dc0eda90b5493 (patch) | |
tree | 57f6bf2a25166c706f13b694feea0e791a750070 /Master/tlpkg/TeXLive | |
parent | a5c112213bcbf0fd501f286be0ad43d945af72aa (diff) |
make sure that a tlnet disabled package is always ignored,
and rebuild in tlcritical
git-svn-id: svn://tug.org/texlive/trunk@26100 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive')
-rw-r--r-- | Master/tlpkg/TeXLive/TLUtils.pm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index 9565d56bead..5281d668864 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -101,6 +101,7 @@ C<TeXLive::TLUtils> -- utilities used in the TeX Live infrastructure TeXLive::TLUtils::compare_tlpobjs($tlpA, $tlpB); TeXLive::TLUtils::compare_tlpdbs($tlpdbA, $tlpdbB); TeXLive::TLUtils::report_tlpdb_differences(\%ret); + TeXLive::TLUtils::tlnet_disabled_packages($root); TeXLive::TLUtils::mktexupd(); =head1 DESCRIPTION @@ -3757,6 +3758,25 @@ sub compare_tlpdbs { return %ret; } +sub tlnet_disabled_packages { + my ($root) = @_; + my $disabled_pkgs = "$root/tlpkg/dev/tlnet-disabled-packages.txt"; + my @ret; + if (-r $disabled_pkgs) { + open (DISABLED, "<$disabled_pkgs") || die "Huu, -r but cannot open: $?"; + while (<DISABLED>) { + chomp; + next if /^\s*#/; + next if /^\s*$/; + $_ =~ s/^\s*//; + $_ =~ s/\s*$//; + push @ret, $_; + } + close(DISABLED) || warn ("Cannot close tlnet-disabled-packages.txt: $?"); + } + return @ret; +} + sub report_tlpdb_differences { my $rret = shift; my %ret = %$rret; |