dodoc: fix installation in EAPI=4
authorNaohiro Aota <naota@gentoo.org>
Tue, 30 Aug 2011 18:51:16 +0000 (20:51 +0200)
committerFabian Groffen <grobian@gentoo.org>
Tue, 30 Aug 2011 18:51:16 +0000 (20:51 +0200)
Look in the offset with ED.

https://bugs.gentoo.org/show_bug.cgi?id=381125

bin/ebuild-helpers/doins

index b3a6a38eefb6555e869a51744d3171e7903adc4f..c91883ba7e15073ceaad34ae08ddc481db5c27ce 100755 (executable)
@@ -70,8 +70,8 @@ _doins() {
                # $PORTAGE_ACTUAL_DISTDIR/.
                if [ $PRESERVE_SYMLINKS = y ] && \
                        ! [[ $(readlink "$mysrc") == "$PORTAGE_ACTUAL_DISTDIR"/* ]] ; then
-                       rm -rf "$D$INSDESTTREE/$mydir/${mysrc##*/}" || return $?
-                       cp -P "$mysrc" "$D$INSDESTTREE/$mydir/${mysrc##*/}"
+                       rm -rf "$ED$INSDESTTREE/$mydir/${mysrc##*/}" || return $?
+                       cp -P "$mysrc" "$ED$INSDESTTREE/$mydir/${mysrc##*/}"
                        return $?
                else
                        cp "$mysrc" "$TMP/2/${mysrc##*/}" || return $?