Package: debhelper
Version: 9.20120608
Severity: serious

Hi,

the preinst snippet created by dh_installcatalogs does not handle
upgrading from a previously removed package, so dpkg shows you the
"foo.cat File on system created by you or by a script." prompt.

The preinst contains
  if [ "$1" = "upgrade" ] && ! dpkg-query -S /etc/sgml/jade.cat >/dev/null 
2>&1; then
which handles regular upgrades, but the preinst will be called
  <new-preinst> install <old-version>
if the package is in "configuration files only" state
http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-unpackphase

Setting the severity to serious as this breaks certain upgrade paths.
All packages using dh_installcatalogs will need to be rebuilt to get
this fixed.

I'm attaching an example piuparts upgrade log from jade.

[there was a successful apt-get install jade, followed by apt-get remove jade]
  Selecting previously unselected package jade.
  (Reading database ... 8092 files and directories currently installed.)
  Unpacking jade (from .../jade_1.2.1-47.1+b1_amd64.deb) ...
  Processing triggers for sgml-base ...
  Updating the super catalog...
  Setting up jade (1.2.1-47.1+b1) ...
  
  Configuration file `/etc/sgml/jade.cat'
   ==> File on system created by you or by a script.
   ==> File also in package provided by package maintainer.
     What would you like to do about it ?  Your options are:
      Y or I  : install the package maintainer's version
      N or O  : keep your currently-installed version
        D     : show the differences between the versions
        Z     : start a shell to examine the situation
   The default action is to keep your current version.
  *** jade.cat (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing jade 
(--configure):
   EOF on stdin at conffile prompt
  Errors were encountered while processing:
   jade



Andreas

Attachment: jade_1.2.1-47.1+b1.log.gz
Description: GNU Zip compressed data

Reply via email to