Package: vim-addon-mw-utils
Version: 0.1-4
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package removes directories
that were installed by another package.

If a directory is used by several packages, all should ship it as part
of the package (possibly empty, using $package.dirs to create it), and
no package should mkdir/rmdir it in the maintainer scripts as dpkg will
take care of this.
Do not work around dpkg bugs failing to do the removal properly.

>From the attached log (scroll to the bottom...):

0m42.5s ERROR: FAIL: After purging files have disappeared:
  /var/lib/vim/  owned by: vim-common
  /var/lib/vim/addons/   owned by: vim-common

This part of the postrm looks faulty:

case "$1" in
    purge)
        if [ -d /var/lib/vim/addons/autoload/ ]; then
          rmdir -p --ignore-fail-on-non-empty /var/lib/vim/addons/autoload || :
        fi
    ;;

* /var/lib/vim/addons/autoload does not sound specific to this package
* -p removes parent directories


cheers,

Andreas

Attachment: vim-addon-mw-utils_0.1-4.log.gz
Description: application/gzip

Reply via email to