summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2010-10-17 09:57:25 +0000
committerNorbert Preining <preining@logic.at>2010-10-17 09:57:25 +0000
commit78f1aa4798b58db440fea84bdfd1dad0c64c0dc5 (patch)
treeb18cb8b3006439549cbe125da414beec62545d29 /Master/texmf
parente848448370bdffbf62d7499c97ef4bf93b42acf3 (diff)
warn if there is no argument to tlmgr search
git-svn-id: svn://tug.org/texlive/trunk@20124 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index 4dab26632b4..45d51b2edda 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -1128,6 +1128,11 @@ sub action_search {
my $r = shift @ARGV;
my $ret = "";
my $tlpdb;
+ #
+ if (!defined($r) || !$r) {
+ tlwarn("tlmgr: nothing to search for.\n");
+ return;
+ }
init_local_db();
if ($opts{"global"}) {
init_tlmedia();