diff options
author | Karl Berry <karl@freefriends.org> | 2008-08-04 23:28:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-08-04 23:28:20 +0000 |
commit | 11415f66fa3172ddcec39693cc063ff7f15a00b6 (patch) | |
tree | 384b8fc75a7247acb5f0a767e9b4c8d4cf7ffdef /Master/tlpkg/TeXLive | |
parent | 0495a5e4a729c49f5c54bdd8371ff7a0c3d9d168 (diff) |
(setup_programs): use warn instead of tlwarn so we
can get program location in the output.
git-svn-id: svn://tug.org/texlive/trunk@10076 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive')
-rw-r--r-- | Master/tlpkg/TeXLive/TLUtils.pm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index d679f9ec3d3..afb3b99e4cd 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -1033,16 +1033,15 @@ sub setup_programs { # check that the programs are actually working my $nul = "/dev/null"; $nul = "nul" if ($^O =~ /^MSWin(32|64)$/i); - # do not test tar for the moment, you never know what tar is there around - # for my $prog ("lzmadec", "tar", "wget") { + # do not test tar, we rely on the system having a usable one. + # The main point is to check the binaries we provide. for my $prog ("lzmadec", "wget") { my $opt = $prog eq "lzmadec" ? "--help" : "--version"; - # next if (($prog eq "tar") && ($platform eq "i386-openbsd")); my $ret = system("$::progs{$prog} $opt >$nul 2>$nul"); if ($ret != 0) { - tlwarn ("TeXLive::TLUtils::setup_programs failed:\n"); - tlwarn ("$::progs{$prog} $opt failed (status $ret): $!\n"); - tlwarn ("Output is:"); + warn "TeXLive::TLUtils::setup_programs failed"; # no newline + warn "$::progs{$prog} $opt failed (status $ret): $!\n"; + warn "Output is:\n"; system ("$::progs{$prog} $opt"); return 0; } |