[pacman-dev] Purging symlinks

Allan McRae allan at archlinux.org
Wed May 23 02:23:00 EDT 2012


On 23/05/12 14:54, Jeremy Huntwork wrote:
> On 5/23/12 12:50 AM, Allan McRae wrote:
>> On 23/05/12 14:35, Jeremy Huntwork wrote:
>>> Hi,
>>>
>>> In current makepkg, file name patterns specified in PURGE_TARGETS will
>>> only match files (and not symlinks) due to:
>>>
>>> find . -type f -name "${pt}" -exec rm -f -- '{}' \;
>>>
>>> Is this intentional?
>>>
>>
>> Seems an oversight to me.  I guess this was to avoid matching
>> directories.
> 
> Ah, OK. Interesting that no one's encountered this yet. Well, the same
> command could be repeated on a second line with -type l, I suppose. Or
> you could try to add in an -o param.
> 

I guess  "-type f -o -type l" is enough.  Do you want to send the patch?

Allan


More information about the pacman-dev mailing list