distutils-r1.eclass: Strip the trailing slash from D
authorMike Gilbert <floppym@gentoo.org>
Sun, 29 May 2016 01:17:34 +0000 (21:17 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 5 Jun 2016 16:47:11 +0000 (12:47 -0400)
This just looks nicer in build logs.

eclass/distutils-r1.eclass

index afd29ed272ffa68badb11deb1f797e094d255a14..171762c60ec273b2eb0d02deb6f3d66bbebae7b2 100644 (file)
@@ -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[@]}"