[pacman-dev] Removing empty directories

Dan McGee dpmcgee at gmail.com
Sun Feb 27 11:56:37 EST 2011


On Sun, Feb 27, 2011 at 4:53 AM, Allan McRae <allan at archlinux.org> wrote:
> On 27/02/11 20:40, Xavier Chantry wrote:
>>
>> On Sun, Feb 27, 2011 at 1:37 AM, Allan McRae<allan at archlinux.org>  wrote:
>>>
>>> I just noticed this:
>>>
>>>> pacman -Qk | grep "^warning"
>>>
>>> warning: filesystem: /opt/ (No such file or directory)
>>> warning: hal: /usr/share/hal/fdi/information/20thirdparty/ (No such file
>>> or
>>> directory)
>>> warning: hal-info: /usr/share/hal/fdi/information/20thirdparty/ (No such
>>> file or directory)
>>> warning: hicolor-icon-theme: /usr/share/icons/hicolor/256x256/apps/ (No
>>> such
>>> file or directory)
>>> warning: network-manager-applet: /etc/gconf/schemas/ (No such file or
>>> directory)
>>>
>>>
>>> All these directories are empty in their package.  They appear to have
>>> been
>>> removed when I uninstalled a different package that had files in that
>>> directory.
>>>
>>> Maybe we need some more checking before removing an empty directory.
>>>
>>> Allan
>>>
>>>
>>
>> http://mailman.archlinux.org/pipermail/pacman-dev/2009-July/009008.html
>> https://bugs.archlinux.org/task/15668
>> https://bugs.archlinux.org/task/11263
>>
>
> 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.

Agreed- I think we've just tried to ignore this in the past because we
knew the solution would require a lot more overhead, but it probably
makes sense to add a test and re-open FS#11263 for this.

-Dan


More information about the pacman-dev mailing list