sys-apps/portage: sed VERSION apidoc
authorZac Medico <zmedico@gentoo.org>
Mon, 25 May 2020 00:35:25 +0000 (17:35 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 25 May 2020 00:35:50 +0000 (17:35 -0700)
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Zac Medico <zmedico@gentoo.org>
sys-apps/portage/portage-2.3.100.ebuild

index 4a9c0ce1cb293092951dc612ef19bac630ed5dce..8abae5056549a5783ed98bcf1197dcd857adf8b2 100644 (file)
@@ -89,6 +89,8 @@ pkg_pretend() {
 python_prepare_all() {
        distutils-r1_python_prepare_all
 
+       sed -e "s:^VERSION = \"HEAD\"$:VERSION = \"${PV}\":" -i lib/portage/__init__.py || die
+
        if use gentoo-dev; then
                einfo "Disabling --dynamic-deps by default for gentoo-dev..."
                sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \