possible mass-bug filing on fc-cache-using packages

2008-05-20 Thread martin f krafft
Hi folks, I noticed the other day that there are quite a few packages like ttf-bitstream-vera which do the following in /var/lib/dpkg/info/ttf-bitstream-vera.postinst: if [ $1 = configure -a -x /usr/bin/fc-cache ] then echo -n Regenerating fonts cache... HOME=/root fc-cache -f -v

Re: possible mass-bug filing on fc-cache-using packages

2008-05-20 Thread brian m. carlson
On Tue, May 20, 2008 at 12:05:46PM +0100, martin f krafft wrote: Hi folks, I noticed the other day that there are quite a few packages like ttf-bitstream-vera which do the following in /var/lib/dpkg/info/ttf-bitstream-vera.postinst: if [ $1 = configure -a -x /usr/bin/fc-cache ] then echo

Re: possible mass-bug filing on fc-cache-using packages

2008-05-20 Thread Josselin Mouette
Le mardi 20 mai 2008 à 12:05 +0100, martin f krafft a écrit : if [ $1 = configure -a -x /usr/bin/fc-cache ] Note -that the $1 = configure check is wrong, see #446856. (echo failed; see /var/log/fontconfig.log for more information.; \ exit 1) This is wrong. Using ()'s creates a

Re: possible mass-bug filing on fc-cache-using packages

2008-05-20 Thread martin f krafft
also sprach brian m. carlson [EMAIL PROTECTED] [2008.05.20.1321 +0100]: I could be wrong, but if the subshell exits 1, then the entire expression is false, and so if you are using set -e like you're supposed to, then the postinst fails. The policy mentions it, but it doesn't say set -e is

Re: possible mass-bug filing on fc-cache-using packages

2008-05-20 Thread Adam D. Barratt
martin f krafft wrote, Tuesday, May 20, 2008 1:41 PM also sprach Josselin Mouette [EMAIL PROTECTED] [2008.05.20.1323 +0100]: Le mardi 20 mai 2008 à 12:05 +0100, martin f krafft a écrit : if [ $1 = configure -a -x /usr/bin/fc-cache ] Note -that the $1 = configure check is wrong, see