commit:     016d5a48d230123f662f3da4ae7d900d365582aa
Author:     Wolfgang E. Sanyer <WolfgangESanyer <AT> gmail <DOT> com>
AuthorDate: Mon Sep 20 18:11:07 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Sep 20 20:05:49 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=016d5a48

Fix installation issue related to black formatting and regex

Bug: https://bugs.gentoo.org/814113
Closes: https://github.com/gentoo/portage/pull/749
Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer <AT> gmail.com>
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 lib/portage/const.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/portage/const.py b/lib/portage/const.py
index e46f47892..abe0ef6c6 100644
--- a/lib/portage/const.py
+++ b/lib/portage/const.py
@@ -60,7 +60,9 @@ 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.
+# fmt:off
 PORTAGE_BASE_PATH = os.path.join(os.sep, 
os.sep.join(os.path.realpath(__file__.rstrip("co")).split(os.sep)[:-3]))
+# fmt:on
 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

Reply via email to