prepstrip: fix for Prefix, bug #395241
authorFabian Groffen <grobian@gentoo.org>
Mon, 19 Dec 2011 18:11:10 +0000 (19:11 +0100)
committerFabian Groffen <grobian@gentoo.org>
Mon, 19 Dec 2011 18:11:10 +0000 (19:11 +0100)
bin/ebuild-helpers/prepstrip

index 84e2edcebd99038c5a369d01d7c6566e9b27eda1..137a41502a1afdfb5991b2aaff31e49ec6f8be0b 100755 (executable)
@@ -263,10 +263,10 @@ if [[ -s ${T}/debug.sources ]] && \
    ${debugedit_found}
 then
        vecho "installsources: rsyncing source files"
-       [[ -d ${ED}${prepstrip_sources_dir} ]] || mkdir -p "${ED}${prepstrip_sources_dir}"
+       [[ -d ${D}${prepstrip_sources_dir} ]] || mkdir -p "${D}${prepstrip_sources_dir}"
        grep -zv '/<[^/>]*>$' "${T}"/debug.sources | \
                (cd "${WORKDIR}"; LANG=C sort -z -u | \
-               rsync -tL0 --files-from=- "${WORKDIR}/" "${ED}${prepstrip_sources_dir}/" )
+               rsync -tL0 --files-from=- "${WORKDIR}/" "${D}${prepstrip_sources_dir}/" )
 
        # Preserve directory structure.
        # Needed after running save_elf_sources.
@@ -274,5 +274,5 @@ then
        while read -r -d $'\0' emptydir
        do
                >> "$emptydir"/.keepdir
-       done < <(find "${ED}${prepstrip_sources_dir}/" -type d -empty -print0)
+       done < <(find "${D}${prepstrip_sources_dir}/" -type d -empty -print0)
 fi