Bug#108230: Problem with maintainer scripts, do not set /usr/share/doc/pccts -> /usr/doc/pccts
Package: pccts
Version: 1.33MR20a-1
Severity: serious
Please look at the maintainer scripts. Appears they were copied from
examples without setting the pkg variable?
Maybe :
pkg=pccts
and s/pkg/\$pkg/g
gbsadler@debian:~$ cat /var/lib/dpkg/info/pccts.postinst
#!/bin/sh -e
if [ "$1" = "configure" ]; then
if [ -d /usr/doc -a ! -e /usr/doc/pkg -a -d /usr/share/doc/pkg ]; then
ln -sf ../share/doc/pkg /usr/doc/pkg
fi
fi
gbsadler@debian:~$ cat /var/lib/dpkg/info/pccts.prerm
#!/bin/sh -e
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/pkg ]; then
rm -f /usr/doc/pkg
-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux debian-home 2.2.19 #1 Sat May 19 16:25:04 CDT 2001 i686
Locale: LANG=en_US, LC_CTYPE=en_US
Versions of packages pccts depends on:
ii libc6 2.2.3-9 GNU C Library: Shared libraries an
--
Gordon Sadler
Reply to: