dev-python/twisted: [QA] Fix UnnecessarySlashStrip
authorDavid Seifert <soap@gentoo.org>
Sat, 8 Feb 2020 16:21:57 +0000 (17:21 +0100)
committerDavid Seifert <soap@gentoo.org>
Sat, 8 Feb 2020 16:21:57 +0000 (17:21 +0100)
Signed-off-by: David Seifert <soap@gentoo.org>
dev-python/twisted/twisted-18.4.0.ebuild
dev-python/twisted/twisted-18.7.0.ebuild

index cd49b1a302311cd5bc1ad49cb03ff114bece3a78..91d876f3ed1ccea3d4b2ecbd1c25e43ffd75976a 100644 (file)
@@ -144,7 +144,7 @@ python_test() {
 python_install() {
        distutils-r1_python_install
 
-       cd "${D%/}$(python_get_sitedir)" || die
+       cd "${D}$(python_get_sitedir)" || die
 
        # own the dropin.cache so we don't leave orphans
        touch twisted/plugins/dropin.cache || die
@@ -179,7 +179,7 @@ pkg_postinst() {
 }
 
 python_postrm() {
-       rm -f "${ROOT%/}$(python_get_sitedir)/twisted/plugins/dropin.cache" || die
+       rm -f "${ROOT}$(python_get_sitedir)/twisted/plugins/dropin.cache" || die
 }
 
 pkg_postrm(){
index 0e4b0a4607d4f2f7e19471d6468dd955502ddf50..b8e44fd29607e061f748c86366b1eb087a1ae80f 100644 (file)
@@ -146,7 +146,7 @@ python_test() {
 python_install() {
        distutils-r1_python_install
 
-       cd "${D%/}$(python_get_sitedir)" || die
+       cd "${D}$(python_get_sitedir)" || die
 
        # own the dropin.cache so we don't leave orphans
        touch twisted/plugins/dropin.cache || die
@@ -181,7 +181,7 @@ pkg_postinst() {
 }
 
 python_postrm() {
-       rm -f "${ROOT%/}$(python_get_sitedir)/twisted/plugins/dropin.cache" || die
+       rm -f "${ROOT}$(python_get_sitedir)/twisted/plugins/dropin.cache" || die
 }
 
 pkg_postrm(){