aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-03-09 21:01:07 -0800
committerZac Medico <zmedico@gentoo.org>2021-03-09 21:14:02 -0800
commitff7d78442895e53afb534c072477f98bada4f248 (patch)
tree559db135f4c908d89b43b29f340f680fa95e1be3
parentUpdates for portage-3.0.17 release (diff)
downloadportage-ff7d78442895e53afb534c072477f98bada4f248.tar.gz
portage-ff7d78442895e53afb534c072477f98bada4f248.tar.bz2
portage-ff7d78442895e53afb534c072477f98bada4f248.zip
setup.py: fix GLOBAL_CONFIG_PATH double prefix
Bug: https://bugs.gentoo.org/775053 Reported-by: Marien Zwart <marien.zwart@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rwxr-xr-xsetup.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index e473e7db5..b6e798757 100755
--- a/setup.py
+++ b/setup.py
@@ -502,10 +502,13 @@ class x_install_lib(install_lib):
with codecs.open(path, "w", "utf-8") as f:
f.write(data)
- val_dict = {
- "GLOBAL_CONFIG_PATH": self.portage_confdir,
- }
+ val_dict = {}
if create_entry_points:
+ val_dict.update(
+ {
+ "GLOBAL_CONFIG_PATH": self.portage_confdir,
+ }
+ )
re_sub_file(
"portage/const.py",
(