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

Re: Question about dpkg -r



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).

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.

Ian.



Reply to: