diff options
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index d0511cf0626..f30d1bc35ba 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -439,7 +439,6 @@ sub action_show { } init_local_db(); my $tlmediatlpdb; - my @colls; foreach my $pkg (@ARGV) { my $tlp = $localtlpdb->get_package($pkg); my $installed = 0; @@ -451,6 +450,9 @@ sub action_show { $tlp = $tlmediatlpdb->get_package($pkg); } else { $installed = 1; + } + if ($tlp) { + my @colls; if ($tlp->category ne "Collection" && $tlp->category ne "Scheme") { @colls = $localtlpdb->needed_by($pkg); if (!@colls) { @@ -462,8 +464,6 @@ sub action_show { @colls = $tlmediatlpdb->needed_by($pkg); } } - } - if ($tlp) { print "Package: ", $tlp->name, "\n"; print "Category: ", $tlp->category, "\n"; print "ShortDesc: ", $tlp->shortdesc, "\n" if ($tlp->shortdesc); |