Bug#314444: gnus: byte-compiling for emacs21 fails

2005-07-13 Thread Malcolm Scott
Also, since the script has 'set -e', if $LOG doesn't exist the script exits 
with return code 1 following the trap, causing dpkg to think the script has 
failed. I suggest adding || exit 0 to the end of the trap command, e.g.:


trap test -f $LOG  mv -f $LOG  $ELCDIR/install.log  /dev/null 21 || exit 
0 EXIT

--
Malcolm Scott
Trinity Hall, Cambridge, CB2 1TJ



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#314444: gnus: byte-compiling for emacs21 fails

2005-06-16 Thread Michael Prokop
Package: gnus
Version: 5.10.6-0.CVS.20050610-1
Severity: important


I've reported this issue against package emacsen-common already once
(see #281129).

Running:
  /usr/lib/emacsen-common/emacs-package-install gnus-bonus-el
fails with:

[...]
install/gnus: Byte-compiling for emacs21...found emacs21   \
  ../usr/lib/emacsen-common/packages/install/gnus:trap:77: \
  undefined signal: exit
[...]

This happens on my system(s) using zsh as /bin/sh.

Line 77 of /usr/lib/emacsen-common/packages/install/gnus contains:

trap test -f $LOG  mv -f $LOG  $ELCDIR/install.log  /dev/null 21 exit

I suggest changing 'trap ... exit' to 'trap ... EXIT'.
http://www.opengroup.org/onlinepubs/009695399/utilities/trap.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]