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

Re: Question about dpkg -r



Ian Jackson <ian@davenant.greenend.org.uk> writes:

> Goswin von Brederlow writes ("Re: Question about dpkg -r"):
>> Say foo and bar both use /foobar/. When you install foo dpkg has to
>> create the directory. When you install bar the directory is already
>> there. When you purge foo the directory is not empty and fails to
>> rmdir. Now, when you purge bar it won't remove /foobar because
>> installing bar did not create it. You have a useless leftover dir.
>
> Is this the dpkg bug your referred to earlier ?  Because it would be a
> bug if when you install bar the directory isn't recorded as being used
> by bar (ie, in bar's .list file).

No, that was his suggested behaviour.

> NB that packages are supposed to contain the directories containing
> their files, IYSWIM.
>
> So this package:
>    usr
>    usr/bin
>    usr/bin/hello
> is fine but this one:
>    usr/bin/hello
> is wrong.

Which happens or did happen at some point. I think it was fixed.  The
other bug is that on removal (not purge) dpkg will remove directories
from the list while it still has conffiles there. Not sure if that was
fixed too or even attempted.

> Ian.

MfG
        Goswin



Reply to: