[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to get dpkg to remove directories?



On Wed, Jun 12, 2002 at 07:49:29AM -0400, Brian Mays wrote:
> Splitting the stuff from the cron.daily script to a separate script is
> not strictly necessary.  If the script is small, couldn't it be left in
> the cron file with the following test to see whether the package is
> installed?
> 
>   test -d /usr/share/doc/foo || exit 0
> 
> or
> 
>   test -f /usr/share/doc/foo/copyright || exit 0
> 
> where "foo" is the package name.  Every policy compliant package (even
> one containing only conffiles) has to have a copyright file, which is
> removed by "dpkg --remove".

A package which did that would not be policy compliant:

13.3. Additional documentation

    Files in `/usr/share/doc' should not be referenced by any program, and
    the system administrator should be able to delete them without causing
    any programs to break.


-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: