[pacman-dev] Purging symlinks
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? Thanks, JH
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. Allan
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. JH
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
On 5/23/12 2:23 AM, Allan McRae wrote:
I guess "-type f -o -type l" is enough. Do you want to send the patch?
Sure, I'll test and send in something. Thanks, JH
participants (2)
-
Allan McRae
-
Jeremy Huntwork