# not be reproduced inside $D. In order to ensure
# that things like dodoc "$DISTDIR"/foo.pdf work
# as expected, we dereference symlinked files that
- # are referenced by absolute paths.
+ # refer to absolute paths inside
+ # $PORTAGE_ACTUAL_DISTDIR/.
if [ $PRESERVE_SYMLINKS = y ] && \
- ! [[ -f "$mysrc" && $(readlink "$mysrc") == /* ]] ; then
+ ! [[ $(readlink "$mysrc") == "$PORTAGE_ACTUAL_DISTDIR"/* ]] ; then
rm -rf "$D$INSDESTTREE/$mydir/${mysrc##*/}" || return $?
cp -P "$mysrc" "$D$INSDESTTREE/$mydir/${mysrc##*/}"
return $?
# remove PORTAGE_ACTUAL_DISTDIR once cvs/svn is supported via SRC_URI
if tree == 'porttree' and \
((mydo != "setup" and "noauto" not in features) \
- or mydo == "unpack"):
+ or mydo in ("install", "unpack")):
_prepare_fake_distdir(mysettings, alist)
#initial dep checks complete; time to process main commands