[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#64560: marked as done (tetex-bin: xdvi wrapper script creates useless tempfiles)



Your message dated Sun, 18 Jun 2000 09:45:29 +0200 (CEST)
with message-id <Pine.NEB.4.21.0006180943300.12870-100000@neptun.fachschaften.tu-muenchen.de>
and subject line These bugs are fixed in tetex-bin (1.0.7-1)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 23 May 2000 23:55:01 +0000
>From J.D.Gilbey@qmw.ac.uk Tue May 23 18:55:01 2000
Return-path: <J.D.Gilbey@qmw.ac.uk>
Received: from mserv1b.u-net.net [195.102.240.137] 
	by master.debian.org with esmtp (Exim 3.12 #2 (Debian))
	id 12uOVo-0002xQ-00; Tue, 23 May 2000 18:55:00 -0500
Received: from [195.102.197.182] (helo=polya)
	by mserv1b.u-net.net with esmtp (Exim 2.10 #63)
	id 12uOVg-0005SZ-00
	for submit@bugs.debian.org; Wed, 24 May 2000 00:54:53 +0100
Received: from jdg by polya with local (Exim 3.12 #1 (Debian))
	id 12uNfs-0003QA-00; Wed, 24 May 2000 00:01:20 +0100
Date: Wed, 24 May 2000 00:01:20 +0100
From: Julian Gilbey <J.D.Gilbey@qmw.ac.uk>
To: Debian bug reports <submit@bugs.debian.org>
Subject: tetex-bin: xdvi wrapper script creates useless tempfiles
Message-ID: <20000524000120.A13148@polya>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/1.0.1i
Delivered-To: submit@bugs.debian.org

Package: tetex-bin
Version: 1.0.6-6

I don't know what's happening with the xdvi wrapper script, but in the
meantime, /usr/X11R6/bin/xdvi has the following:

filename=${1+"$@"}
compress=0
tempfile=`tempfile -p tetex -s .dvi`
case "${filename}X" in
  *.gzX)
    gzip -d -c $filename > $tempfile
    compress=1
    ;;
  *.bz2X)
    bzip2 -d -c $filename > $tempfile
    compress=1
    ;;
esac
if test $compress = 1; then
    trap "rm -f $tempfile" 0 1 2 15
    filename=$tempfile
fi

So the tempfile is created anyway, but only removed if anything's
written into it.  Either the trap command should come immediately
after the tempfile command, or the tempfile command should appear in
both of the cases, thus:

filename=${1+"$@"}
compress=0
case "${filename}X" in
  *.gzX)
    tempfile=`tempfile -p tetex -s .dvi`
    gzip -d -c $filename > $tempfile
    compress=1
    ;;
  *.bz2X)
    tempfile=`tempfile -p tetex -s .dvi`
    bzip2 -d -c $filename > $tempfile
    compress=1
    ;;
esac
...

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
        Debian GNU/Linux Developer,  see http://www.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/

---------------------------------------
Received: (at 62813-done) by bugs.debian.org; 18 Jun 2000 07:45:31 +0000
>From bunk@fs.tum.de Sun Jun 18 02:45:31 2000
Return-path: <bunk@fs.tum.de>
Received: from nilpferd.fachschaften.tu-muenchen.de [129.187.176.79] 
	by master.debian.org with smtp (Exim 3.12 2 (Debian))
	id 133Zlr-0003Hz-00; Sun, 18 Jun 2000 02:45:31 -0500
Received: (qmail 13352 invoked from network); 18 Jun 2000 07:45:29 -0000
Received: from neptun.fachschaften.tu-muenchen.de (129.187.176.23)
  by nilpferd.fachschaften.tu-muenchen.de with SMTP; 18 Jun 2000 07:45:29 -0000
Date: Sun, 18 Jun 2000 09:45:29 +0200 (CEST)
From: Adrian Bunk <bunk@fs.tum.de>
X-Sender: bunk@neptun.fachschaften.tu-muenchen.de
To: 56994-done@bugs.debian.org, 60415-done@bugs.debian.org, 
    62541-done@bugs.debian.org, 62813-done@bugs.debian.org, 
    63366-done@bugs.debian.org, 64560-done@bugs.debian.org, 
    65608-done@bugs.debian.org
Subject: These bugs are fixed in tetex-bin (1.0.7-1)
Message-ID: <Pine.NEB.4.21.0006180943300.12870-100000@neptun.fachschaften.tu-muenchen.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: 62813-done@bugs.debian.org

These bugs are fixed in tetex-bin (1.0.7-1) that is already in woody.

cu,
Adrian

-- 
A "No" uttered from deepest conviction is better and greater than a
"Yes" merely uttered to please, or what is worse, to avoid trouble.
                -- Mahatma Ghandi



Reply to: