[pacman-dev] Removing empty directories
Allan McRae
allan at archlinux.org
Sun Feb 27 06:40:25 EST 2011
On 27/02/11 21:01, Xavier Chantry wrote:
> On Sun, Feb 27, 2011 at 11:53 AM, Allan McRae<allan at archlinux.org> wrote:
>>
>> I had a fair suspicion this had been discussed before... I just did a
>> "wtf?" when I saw /opt had disappeared.
>>
>> I'm going to create a pactest for this.
>>
>
> If we believe the performance hit to fix this problem is not worth it,
> why not consider these packaging problems, and have all these packages
> install a .keep file ?
>
How much of a performance hit would there really be? If I have this
right in my head (big assumption), the file-lists for all packages are
read in in one go. So all that we would have to do is loop over them
checking for the empty directory before we add it to the removal list.
Should be a minimal impact.... maybe...
I suppose the best way is to make a patch and see!
Allan
More information about the pacman-dev
mailing list