summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-11-15 12:40:21 +0100
committerMichał Górny <mgorny@gentoo.org>2019-11-15 13:13:42 +0100
commit4b19234b2f4d860117b9adb334af424331c434cb (patch)
tree2a953d4a5f96c75d39c09938e4780db8d30c0fe9 /dev-python/packaging
parentdev-python/pluggy: Add RESTRICT="!test? ( test )" (diff)
downloadgentoo-4b19234b2f4d860117b9adb334af424331c434cb.tar.gz
gentoo-4b19234b2f4d860117b9adb334af424331c434cb.tar.bz2
gentoo-4b19234b2f4d860117b9adb334af424331c434cb.zip
dev-python/packaging: Fix UnnecessarySlashStrip
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/packaging')
-rw-r--r--dev-python/packaging/packaging-18.0.ebuild2
-rw-r--r--dev-python/packaging/packaging-19.2.ebuild2
2 files changed, 2 insertions, 2 deletions
diff --git a/dev-python/packaging/packaging-18.0.ebuild b/dev-python/packaging/packaging-18.0.ebuild
index 87be6a561525..af75bdacd0d7 100644
--- a/dev-python/packaging/packaging-18.0.ebuild
+++ b/dev-python/packaging/packaging-18.0.ebuild
@@ -42,7 +42,7 @@ pkg_preinst() {
_cleanup() {
local pyver=$("${PYTHON}" -c "from distutils.sysconfig import get_python_version; print(get_python_version())")
- local egginfo="${ROOT%/}$(python_get_sitedir)/${P}-py${pyver}.egg-info"
+ local egginfo="${ROOT}$(python_get_sitedir)/${P}-py${pyver}.egg-info"
if [[ -d ${egginfo} ]]; then
echo rm -r "${egginfo}"
rm -r "${egginfo}" || die "Failed to remove egg-info directory"
diff --git a/dev-python/packaging/packaging-19.2.ebuild b/dev-python/packaging/packaging-19.2.ebuild
index 67c7cc9c63ef..27a840a82fe9 100644
--- a/dev-python/packaging/packaging-19.2.ebuild
+++ b/dev-python/packaging/packaging-19.2.ebuild
@@ -42,7 +42,7 @@ pkg_preinst() {
_cleanup() {
local pyver=$("${PYTHON}" -c "from distutils.sysconfig import get_python_version; print(get_python_version())")
- local egginfo="${ROOT%/}$(python_get_sitedir)/${P}-py${pyver}.egg-info"
+ local egginfo="${ROOT}$(python_get_sitedir)/${P}-py${pyver}.egg-info"
if [[ -d ${egginfo} ]]; then
rm -rv "${egginfo}" || die "Failed to remove egg-info directory"
fi