commit:     d5d001429cc3363d5ae3b6b95f69b76a00fcfa0b
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun May 29 01:17:34 2016 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Jun  5 16:47:11 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5d00142

distutils-r1.eclass: Strip the trailing slash from D

This just looks nicer in build logs.

 eclass/distutils-r1.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index afd29ed..171762c 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -555,8 +555,8 @@ distutils-r1_python_install() {
                done
        fi
 
-       local root=${D}/_${EPYTHON}
-       [[ ${DISTUTILS_SINGLE_IMPL} ]] && root=${D}
+       local root=${D%/}/_${EPYTHON}
+       [[ ${DISTUTILS_SINGLE_IMPL} ]] && root=${D%/}
 
        esetup.py install --root="${root}" "${args[@]}"
 

Reply via email to