diff options
Diffstat (limited to 'Master/tlpkg/TeXLive/TLTREE.pm')
-rw-r--r-- | Master/tlpkg/TeXLive/TLTREE.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLTREE.pm b/Master/tlpkg/TeXLive/TLTREE.pm index 8b2e1a02d49..d3742cfe981 100644 --- a/Master/tlpkg/TeXLive/TLTREE.pm +++ b/Master/tlpkg/TeXLive/TLTREE.pm @@ -175,6 +175,14 @@ sub size_of { sub get_matching_files { my ($self, $type, $p) = @_; if ($type eq "bin") { + # binpatterns can have an additions specifier after the prefix: /ARCH + # which specifies that these patterns are ONLY for the specified arch! + if ($p =~ m!^(\w+)/(\w+)\s+(.*)$!) { + printf STDERR "FOUND ARCH DEP PATTERN $p\n"; + my @foo = $self->_get_matching_files($type,"$1 $3"); + $returnfiles{$2} = [ @foo ]; + return(\%returnfiles); + } # we first substitute arch for ${ARCH} my %returnfiles; foreach $a ($self->architectures) { |