Bug#280824: vim-doc: Preinst script is broken
Kevin McCarty
Kevin McCarty <kmccarty@Princeton.EDU>, 280824@bugs.debian.org
Thu, 11 Nov 2004 17:18:56 -0500
Package: vim-doc
Version: 1:6.3-031+1
Severity: grave
Justification: renders package unusable
Hi,
Trying to install the latest version of vim-doc causes a long set of error
messages to be printed out:
# dpkg -i /var/cache/apt/archives/vim-doc_1%3a6.3-031+1_all.deb
(Reading database ... 96101 files and directories currently installed.)
Preparing to replace vim-doc 1:6.3-013+2 (using .../vim-doc_1%3a6.3-031+1_all.deb) ...
rm: cannot remove `/usr/share/doc//Debian': Is a directory
rm: cannot remove `/usr/share/doc//FAQ': Is a directory
rm: cannot remove `/usr/share/doc//HOWTO': Is a directory
[snip]
rm: cannot remove `/usr/share/doc//zsh-doc': Is a directory
dpkg: error processing /var/cache/apt/archives/vim-doc_1%3a6.3-031+1_all.deb (--install):
subprocess pre-installation script returned error exit status 1
The problem appears to be an undefined variable "$pkg" in the preinst.
I guess $pkg is supposed to be vim-doc? Good thing you didn't use rm -r,
that would really have been a pain to fix :-P
#! /bin/sh -e
if [ ! -h /usr/share/doc/$pkg ] ; then
if [ -d /usr/share/doc/$pkg ] ; then
rm -f /usr/share/doc/$pkg/*
rmdir /usr/share/doc/$pkg/
fi
fi
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.8-powerpc
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
-- no debconf information
regards,
--
Kevin B. McCarty <kmccarty@princeton.edu> Physics Department
WWW: http://www.princeton.edu/~kmccarty/ Princeton University
GPG public key ID: 4F83C751 Princeton, NJ 08544