summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-09-01 10:57:42 +0200
committerMichał Górny <mgorny@gentoo.org>2020-09-01 11:07:02 +0200
commite991b99fbd70b9393bc0a8c5a2c56b707203396d (patch)
treea7c95d22e559e31792137e3dd54e15ab5acb12f2 /dev-python/kazoo
parentsys-cluster/charm: Remove USE=doc (python2) (diff)
downloadgentoo-e991b99fbd70b9393bc0a8c5a2c56b707203396d.tar.gz
gentoo-e991b99fbd70b9393bc0a8c5a2c56b707203396d.tar.bz2
gentoo-e991b99fbd70b9393bc0a8c5a2c56b707203396d.zip
dev-python/kazoo: Fix passing zookeeper version to tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/kazoo')
-rw-r--r--dev-python/kazoo/kazoo-2.8.0.ebuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev-python/kazoo/kazoo-2.8.0.ebuild b/dev-python/kazoo/kazoo-2.8.0.ebuild
index 7fa29ad8c83f..781cd47ca653 100644
--- a/dev-python/kazoo/kazoo-2.8.0.ebuild
+++ b/dev-python/kazoo/kazoo-2.8.0.ebuild
@@ -40,7 +40,8 @@ src_prepare() {
src_test() {
local pkgver=$(best_version sys-cluster/zookeeper-bin)
- export ZOOKEEPER_VERSION=${pkgver##*-}
+ pkgver=${pkgver#sys-cluster/zookeeper-bin-}
+ export ZOOKEEPER_VERSION=${pkgver%-r*}
export ZOOKEEPER_PATH=${BROOT}/opt/zookeeper-bin
distutils-r1_src_test
}