Bug#195604: tetex-bin: broken guard for tetex-bin/cnf_name
From: "Aaron M. Ucko" <ucko@debian.org>
Subject: Bug#195604: tetex-bin: broken guard for tetex-bin/cnf_name
Date: Sat, 31 May 2003 17:45:31 -0400
> > Preparing to replace tetex-bin 2.0.2-3 (using .../tetex-bin_2.0.2-4_i386.deb) ...
> > dpkg: error processing /var/cache/apt/archives/tetex-bin_2.0.2-4_i386.deb (--unpack):
> > subprocess pre-installation script returned error exit status 1
>
> The problem seems to be with
>
> flag=`ls /etc/texmf/texmf.d/*[^\.cnf$] 2> /dev/null | egrep -v '(.dpkg-.*|~)$'`
> if [ X"${flag}" != X ]; then
> db_input high tetex-bin/cnf_name || true
> db_go || true
> fi
>
> in particular, if egrep doesn't find anything, then the assignment to
> flag returns false (!). Your shell globbing is also a bit off; I'd
> suggest something like
>
> if ls /etc/texmf/texmf.d 2>/dev/null | egrep -vq '(\.cnf|\.dpkg-.*|~)$'; then
> db_input high tetex-bin/cnf_name || true
> db_go || true
> fi
>
> Please test whatever code you end up using before releasing it, both
> with and without non-.cnf files!
Thanks for your help. I'll fix and upload a new
version as soon as possible.
Best regards, 2003-6-1(Sun)
--
Debian Developer & Debian JP Developer - much more I18N of Debian
Atsuhito Kohda <kohda@debian.org>
Department of Math., Tokushima Univ.
Reply to: