From: Zac Medico Date: Thu, 24 Aug 2006 03:51:43 +0000 (-0000) Subject: For bug #144928, add -L to the rsync options (transform symlink into referent). ... X-Git-Tag: v2.1.1~52 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b655977224cb411ffc85d0371f83349e5872b42e;p=portage.git For bug #144928, add -L to the rsync options (transform symlink into referent). Thanks to Olivier Crete for this patch. svn path=/main/trunk/; revision=4321 --- diff --git a/bin/prepstrip b/bin/prepstrip index deaa017eb..a498b182c 100755 --- a/bin/prepstrip +++ b/bin/prepstrip @@ -30,7 +30,8 @@ save_elf_debug() { debugedit -b "${WORKDIR}" -d /usr/src/debug/${PF} -l "${T}"/debug.sources "${x}" if [[ -s ${T}/debug.sources ]] ; then [[ -d ${D}/usr/src/debug/${PF} ]] || mkdir -p "${D}/usr/src/debug/${PF}" - cat "${T}"/debug.sources | (cd "${WORKDIR}"; LANG=C sort -z -u | rsync -a0 --files-from=- "${WORKDIR}/" "${D}/usr/src/debug/${PF}/" ) + cat "${T}"/debug.sources | (cd "${WORKDIR}"; LANG=C sort -z -u | \ + rsync -aL0 --files-from=- "${WORKDIR}/" "${D}/usr/src/debug/${PF}/" ) fi fi