summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-27 04:56:06 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-27 04:56:06 +0000
commitf99ec77944c259c2b64a5604f4a3e52d9fe369fd (patch)
tree4186adb794621ff221dfdc4e09c0bdd4e2ac7dc0 /bin
parentFor bug #167668, prune empty ${FILESDIR}s by adding --prune-empty-dirs to PO... (diff)
downloadportage-multirepo-f99ec77944c259c2b64a5604f4a3e52d9fe369fd.tar.gz
portage-multirepo-f99ec77944c259c2b64a5604f4a3e52d9fe369fd.tar.bz2
portage-multirepo-f99ec77944c259c2b64a5604f4a3e52d9fe369fd.zip
For compatibility with older findutils, don't use the -L predicate (bug #168432). (trunk r6085:6086)
svn path=/main/branches/2.1.2/; revision=6087
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ecompressdir5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ecompressdir b/bin/ecompressdir
index a95e1a20..163230dd 100755
--- a/bin/ecompressdir
+++ b/bin/ecompressdir
@@ -32,8 +32,9 @@ funk_up_dir() {
find "${dir}" -type f ${negate} -iname '*.'${suffix} -print0 | ${XARGS} -0 ${binary}
((ret+=$?))
- find -L "${dir}" -type l | \
- while read brokenlink ; do
+ find "${dir}" -type l -print0 | \
+ while read -d $'\0' brokenlink ; do
+ [[ -e ${brokenlink} ]] && continue
olddest=$(readlink "${brokenlink}")
[[ ${act} == "compress" ]] \
&& newdest="${olddest}${suffix}" \