Hi,

2011/5/16 Raphael Hertzog <hert...@debian.org>:
> Hi,
>
> On Mon, 16 May 2011, Ondřej Surý wrote:
>> (small) ping with question...
>>
>> Are you going to consider implementing purge_dir to
>> dpkg-maintscript-helper or should I do it directly in
>> php5-<sapi>.postinst scripts? (Both options are OK for me.)
>
> I'm definitely interested into providing a standardized
> solution with dpkg-maintscript-helper until dpkg can
> support this natively.
>
> I'm just not sure what the correct solution is. Instead of purge_dir maybe
> the right answer is "manage-manual-conffile" and/or
> "manage-manual-file". And it would drop the file on removal/purge and try
> to remove the parent directories if they are no longer owned.
>
> For now, the "preinst/prerm/postinst" would be a no-op but the postrm
> would do the removal. Later when we can tell dpkg that the package
> installed some manual files, the registration would happen in postinst
> and in the other scripts the command would become a no-op since
> dpkg itself would do the removal.

Sounds good. The only problem I see is that it could be "files" (as in
/var/log/<package>), so maybe a pattern is needed?

Something like:

dpkg-maintscript-helper manage-manual-files /var/log/<package>/*.log*

Or maybe I am overcomplicating stuff and we already know how to handle
logfiles and this is really for low-number of files.

Anyway I think that my patch would work just like that, just rename
the purge_dir to what you like :)

O.
-- 
Ondřej Surý <ond...@sury.org>
http://blog.rfc1925.org/




--
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to