summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl13
1 files changed, 9 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index 725e253a818..dd3fe7d4de6 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -1382,6 +1382,11 @@ sub action_info {
my $tlp = $localtlpdb->get_package($pkg);
my $installed = 0;
if (!$tlp) {
+ if ($opts{"only-installed"}) {
+ print "package: $pkg\n";
+ print "installed: No\n";
+ next;
+ }
if (!$remotetlpdb) {
init_tlmedia_or_die();
}
@@ -1473,11 +1478,11 @@ sub action_info {
if ($tlp->category ne "Collection" && $tlp->category ne "Scheme") {
@colls = $localtlpdb->needed_by($pkg);
if (!@colls) {
- # not referenced in the local tlpdb, so try the remote here, too
- if (!$remotetlpdb) {
- init_tlmedia_or_die();
+ if (!$opts{"only-installed"}) {
+ # not referenced in the local tlpdb, so try the remote here, too
+ init_tlmedia_or_die() if (!$remotetlpdb);
+ @colls = $remotetlpdb->needed_by($pkg);
}
- @colls = $remotetlpdb->needed_by($pkg);
}
}
# some packages might depend on other packages, so do not