commit: 65d90714ab5dd00fa162695181958749dbddb711 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Mon Sep 20 19:53:05 2021 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Mon Sep 20 19:53:05 2021 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=65d90714
Define PORTAGE_BASE_PATH on a single line This is required for the mangling code in setup.py to work properly. Closes: https://bugs.gentoo.org/814113 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> lib/portage/const.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/portage/const.py b/lib/portage/const.py index f6845b806..e46f47892 100644 --- a/lib/portage/const.py +++ b/lib/portage/const.py @@ -60,9 +60,7 @@ GLOBAL_CONFIG_PATH = "/usr/share/portage/config" # NOTE: Use realpath(__file__) so that python module symlinks in site-packages # are followed back to the real location of the whole portage installation. # NOTE: Please keep PORTAGE_BASE_PATH in one line to help substitutions. -PORTAGE_BASE_PATH = os.path.join( - os.sep, os.sep.join(os.path.realpath(__file__.rstrip("co")).split(os.sep)[:-3]) -) +PORTAGE_BASE_PATH = os.path.join(os.sep, os.sep.join(os.path.realpath(__file__.rstrip("co")).split(os.sep)[:-3])) PORTAGE_BIN_PATH = PORTAGE_BASE_PATH + "/bin" PORTAGE_PYM_PATH = os.path.realpath(os.path.join(__file__, "../..")) LOCALE_DATA_PATH = PORTAGE_BASE_PATH + "/locale" # FIXME: not used
