Bug#195604: tetex-bin: broken guard for tetex-bin/cnf_name
Package: tetex-bin
Version: 2.0.2-4
Severity: grave
Tags: sid
Justification: renders package unusable
> 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!
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux tux 2.4.20 #1 Tue Mar 25 21:04:15 EST 2003 i686
Locale: LANG=en_US, LC_CTYPE=en_US
Versions of packages tetex-bin depends on:
ii debconf 1.2.37 Debian configuration management sy
ii debianutils 2.5.2 Miscellaneous utilities specific t
ii dpkg 1.10.10 Package maintenance system for Deb
ii ed 0.2-20 The classic unix line editor
ii libc6 2.3.1-17 GNU C Library: Shared libraries an
ii libgcc1 1:3.3-2 GCC support library
ii libkpathsea3 2.0.2-4 shared libkpathsea for teTeX
ii libpng12-0 1.2.5.0-3 PNG library - runtime
ii libstdc++5 1:3.3-2 The GNU Standard C++ Library v3
ii libwww-ssl0 [libwww0] 5.4.0-6 The W3C-WWW library (SSL support)
ii libxaw7 4.2.1-6 X Athena widget set library
ii perl 5.8.0-17 Larry Wall's Practical Extraction
ii t1lib1 1.3.1-1 Type 1 font rasterizer library - r
ii tetex-base 2.0.2-3 basic teTeX library files
ii xlibs 4.2.1-6 X Window System client libraries
ii zlib1g 1:1.1.4-12 compression library - runtime
-- debconf information:
* tetex-bin/upd_map: true
* tetex-bin/cnf_name:
* tetex-bin/fmtutil: true
* tetex-bin/userperm: false
* tetex-bin/texmf: true
* tetex-bin/hyphen: latin, russian
tetex-bin/oldcfg: true
* tetex-bin/use_debconf: true
* tetex-bin/groupname: users
* tetex-bin/groupperm: true
* tetex-bin/lsr-perms: true
Reply to: