dev-vcs/stgit: fix show version err
authorYixun Lan <dlan@gentoo.org>
Fri, 26 Oct 2018 14:36:46 +0000 (22:36 +0800)
committerYixun Lan <dlan@gentoo.org>
Fri, 26 Oct 2018 14:58:32 +0000 (22:58 +0800)
Closes: https://bugs.gentoo.org/657736
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-vcs/stgit/stgit-0.18.ebuild

index e56d0dbace52986a4a57b0134999cb261a581e3c..11e95e4ec16fa3485d73b6de3ea1d53deb1f9128 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -52,7 +52,7 @@ python_prepare_all() {
 
        # this will be a noop, as we are working with a tarball,
        # but throws git errors --> just get rid of it
-       sed -i -e 's/version\.write_builtin_version()//' setup.py || die
+       echo "version=\"${PV}\"" > "${S}"/stgit/builtin_version.py
 
        distutils-r1_python_prepare_all
 }