On 06.03.2015 02:43, Andreas Beckmann wrote:
> during a test with piuparts I noticed your package failed to purge due
> to a command not found. According to policy 7.2 you cannot rely on the
> depends being available during purge, only the essential packages are
> available for sure.
[...]
>   Purging configuration files for scanbd (1.4.1-4) ...
>   /var/lib/dpkg/info/scanbd.postrm: 10: /var/lib/dpkg/info/scanbd.postrm: 
> update-inetd: not found

Andreas,

thank you for the report.  I'm a bit puzzled now as to what is the
appropriate way to handle this.  I asked in #debian-mentors and even
pabs didn't know a definite answer.  I poked around other packages for
guidance and inspiration and I'm still unclear.

1) handle removal in prerm only
   that seems premature
2) handle removal in prerm and postrm
   cups does this, while testing for the existence of the binary
   same problem as #1
3) handle removal only in postrm, but test for existence of the binary
   atftpd does this
   purge will succeed, but possibly leaving cruft behind

None of these seems to be any good, really.  So maybe there is a #4?
Using sed or something like that?

Can I ask for your kind guidance on how this ought to be dealt with
properly?

Regards

Rolf


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to