[Logcheck-devel] Bug#542265: sendmail-base and logcheck-database: error when trying to install together

martin f krafft madduck at debian.org
Sat Aug 22 17:21:52 UTC 2009


also sprach Frédéric Brière <fbriere at fbriere.net> [2009.08.22.1855 +0200]:
> Nah, that could easily be avoided by making sure that the (unmodified)
> conffile doesn't belong to any package when postinst is called.  The
> basic idea is to avoid this sequence:
> 
>   - Unpacking logcheck-database
>   - Unpacking sendmail-base
>   - Configuring logcheck-database
> 
> At that point, we don't want to remove the file, since it now belongs to
> sendmail-base.

I believe you have to make such removals in preinst or postrm, which
are both also called on upgrades, aren't they?

> Or, we could just have sendmail-base replace logcheck-database and
> call it a day.  :)

that is what Replaces is for.

-- 
 .''`.   martin f. krafft <madduck at d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
URL: <http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20090822/7e18c2d8/attachment-0001.pgp>


More information about the Logcheck-devel mailing list