diff options
author | Karl Berry <karl@freefriends.org> | 2015-12-08 21:47:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-12-08 21:47:09 +0000 |
commit | 5db0950ba6b90723a352862042de9231540decfc (patch) | |
tree | 9216a8cf931c9faf8342e3cda8f65a1807e395cb /Master/tlpkg/TeXLive/TLPDB.pm | |
parent | a6fd5c09b9e642613317ee3fd06d92be9548fd7b (diff) |
* bin/tlpfiles: doc tweaks.
* TeXLive/TLPDB.pm (find_file): no need for @foo.
* TeXLive/TLPSRC.pm (): include $lineno in non-continuation error.
* TeXLive/TLUtils.pm (parseAddFormatLine_line): doc.
git-svn-id: svn://tug.org/texlive/trunk@39054 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive/TLPDB.pm')
-rw-r--r-- | Master/tlpkg/TeXLive/TLPDB.pm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Master/tlpkg/TeXLive/TLPDB.pm b/Master/tlpkg/TeXLive/TLPDB.pm index 811da76099b..90738ee0d54 100644 --- a/Master/tlpkg/TeXLive/TLPDB.pm +++ b/Master/tlpkg/TeXLive/TLPDB.pm @@ -815,14 +815,13 @@ containing a file named C<filename>. # TODO adapt for searching in *all* tags ??? sub find_file { my ($self,$fn) = @_; - my @ret; - foreach my $pkg ($self->list_packages) { - my @foo = $self->get_package($pkg)->contains_file($fn); - foreach my $f ($self->get_package($pkg)->contains_file($fn)) { - push @ret, "$pkg:$f"; + my @ret = (); + for my $pkg ($self->list_packages) { + for my $f ($self->get_package($pkg)->contains_file($fn)) { + push (@ret, "$pkg:$f"); } } - return(@ret); + return @ret; } =pod |