commit:     b568c8d501962bf748ee1ff04f05e5a16b716b0f
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 11 12:36:47 2021 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sun Jul 11 12:37:48 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b568c8d5

dev-util/buildbot-pkg: Fix version setting

Closes: https://bugs.gentoo.org/796980
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>

 dev-util/buildbot-pkg/buildbot-pkg-3.2.0.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dev-util/buildbot-pkg/buildbot-pkg-3.2.0.ebuild 
b/dev-util/buildbot-pkg/buildbot-pkg-3.2.0.ebuild
index ce173c78757..e78e9ab3313 100644
--- a/dev-util/buildbot-pkg/buildbot-pkg-3.2.0.ebuild
+++ b/dev-util/buildbot-pkg/buildbot-pkg-3.2.0.ebuild
@@ -26,7 +26,8 @@ KEYWORDS="~amd64 ~arm64 ~amd64-linux ~x86-linux"
 
 S=${WORKDIR}/${MY_P}
 
-src_install() {
-       export BUILDBOT_VERSION="${MY_PV}"
-       distutils-r1_src_install
+python_prepare_all() {
+       sed -e 
"s:version=buildbot_pkg.getVersion(\".\"),:version=\"${MY_PV}\",:" \
+               -i setup.py || die
+       distutils-r1_python_prepare_all
 }

Reply via email to