[Pkg-puppet-devel] Bug#1030212: puppet-agent: conffiles not removed: /etc/init.d/puppet-agent /etc/default/puppet-agent

Paul Wise pabs at debian.org
Thu Feb 2 04:14:57 GMT 2023


On Wed, 2023-02-01 at 08:22 -0500, Jérôme Charaoui wrote:

> Specifically, I added to d/puppet-agent.maintscript:
> 
>      mv_conffile /etc/default/puppet-agent /etc/default/puppet 7.21.0-2~
>      mv_conffile /etc/init.d/puppet-agent /etc/init.d/puppet 7.21.0-2~
> 
> Do you know why this isn't working as intended?

According to the dpkg-maintscript-helper manual page:

   If the conffile has not been shipped for several versions, and you
   are now modifying the maintainer scripts to clean up the obsolete
   file, prior-version should be based on the version of the package
   that you are now preparing, not the first version of the package
   that lacked the conffile.
   
   For example, for a conffile removed in version 2.0-1 of a package,
   prior-version should be set to 2.0-1~. This will cause the conffile
   to be removed even if the user rebuilt the previous version 1.0-1 as
   1.0-1local1. Or a package switching a path from a symlink (shipped
   in version 1.0-1) to a directory (shipped in version 2.0-1), but
   only performing the actual switch in the maintainer scripts in
   version 3.0-1, should set prior-version to 3.0-1~.

So 7.22.0-3~ should have been used for the version number, but
for the next upload it should be 7.22.0-4~ or similar instead.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-puppet-devel/attachments/20230202/f9eba2a2/attachment.sig>


More information about the Pkg-puppet-devel mailing list