tag 574217 + confirmed
thanks

On Wed, 17 Mar 2010 00:29:24 +0100, Lucas Nussbaum wrote:

> > Removing libpdl-netcdf-perl ...
> > Purging configuration files for libpdl-netcdf-perl ...
> > dpkg: error processing libpdl-netcdf-perl (--purge):
> > subprocess installed post-removal script returned error exit status 2
> > Errors were encountered while processing:
> > libpdl-netcdf-perl

Making the .postrm a bit more verbose and running the package through
piuparts I get:

4m59.2s DEBUG: Starting command: ['chroot', '/tmp/tmp7S9GOj', 'dpkg', 
'--purge', 'pdl']
4m59.4s DUMP: 
  (Reading database ... 17545 files and directories currently installed.)
  Removing pdl ...
  Purging configuration files for pdl ...
4m59.4s DEBUG: Command ok: ['chroot', '/tmp/tmp7S9GOj', 'dpkg', '--purge', 
'pdl']
[..]
5m0.2s DEBUG: Starting command: ['chroot', '/tmp/tmp7S9GOj', 'dpkg', '--purge', 
'libpdl-netcdf-perl']
5m0.3s DUMP: 
  (Reading database ... 17545 files and directories currently installed.)
  Removing libpdl-netcdf-perl ...
  Purging configuration files for libpdl-netcdf-perl ...
  + case "$1" in
  + perl /usr/lib/perl5/PDL/Doc/scantree.pl /usr/lib/perl5/ 
/var/lib/pdl/pdldoc.db /var/lib/pdl/Index.pod
  Can't open perl script "/usr/lib/perl5/PDL/Doc/scantree.pl": No such file or 
directory
  dpkg: error processing libpdl-netcdf-perl (--purge):
   subprocess installed post-removal script returned error exit status 2
  Errors were encountered while processing:
   libpdl-netcdf-perl
5m0.3s DEBUG: Command failed (status=1), but ignoring error: ['chroot', 
'/tmp/tmp7S9GOj', 'dpkg', '--purge', 'libpdl-netcdf-perl']

/usr/lib/perl5/PDL/Doc/scantree.pl is in the pdl package.

Looks like checking if the scripts used in postrm are available at
purge time is the way to go.

Cheers,
gregor
 
-- 
 .''`.   http://info.comodo.priv.at/ -- GPG Key IDs: 0x8649AA06, 0x00F3CFE4
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
   `-    NP: U2: God Part II

Attachment: signature.asc
Description: Digital signature

Reply via email to