[tlbuild] Report install-tl errors on top level?

Norbert Preining preining at logic.at
Thu Jun 4 00:00:14 CEST 2009


On Mi, 03 Jun 2009, Hartmut Henkel wrote:
> +  if (defined($::LOGFILE) && grep(/Error:/i,$::LOGFILE)) {
> +    print "There were errors during installation!"
> +    exit 1;
> +  }
>    exit 0;
> 
> ? Problem is that this doesn't work, it never goes to the error message,
> and i don't know enough Perl to fix it.

The problem is at that point the log file has already been written, and
$::LOGFILE is a filehandle which you cannot grep. One could grep in
@::LOGLINES, but as I said, at that point the lines are already flushed
to the log file.

I have put your suggestion on the TODO list, maybe I find a working
solution.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining at logic.at>        Vienna University of Technology
Debian Developer <preining at debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
HASELBURY PLUCKNETT (n.)
A mechanical device for cleaning combs invented during the industrial
revolution at the same time as Arkwright's Spinning Jenny, but which
didn't catch on in the same way.
			--- Douglas Adams, The Meaning of Liff


More information about the tlbuild mailing list