From 49950b83b65749bfdf78a9532c900c959a5a87bf Mon Sep 17 00:00:00 2001 From: Alexey Tourbin Date: Sun, 19 Sep 2010 09:58:12 +0400 Subject: [PATCH] brp-cleanup: updated for /usr/lib64/perl5 and /usr/share/perl5 --- scripts/brp-cleanup.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/brp-cleanup.in b/scripts/brp-cleanup.in index 845114e..502e185 100755 --- a/scripts/brp-cleanup.in +++ b/scripts/brp-cleanup.in @@ -86,15 +86,16 @@ fi # All the rest is perl cleanup stuff. -cd ./usr/lib/perl5 >/dev/null 2>&1 || exit 0 +set -- ./usr/*/perl5/ +[ -d "$1" ] || exit 0 -find -type f -name .packlist -print0 | +find "$@" -type f -name .packlist -print0 | xargs -r0 rm -vf -- -find -type f -name \*.bs -size 0 -print0 | +find "$@" -type f -name \*.bs -size 0 -print0 | xargs -r0 rm -vf -- -f="$(find -type f -name \*.bs)" +f="$(find "$@" -type f -name \*.bs)" if [ -n "$f" ]; then echo "$PROG: non empty *.bs file(s) found:" printf %s\\n "$f"