Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos.core
Commits
a9c42538
Commit
a9c42538
authored
Mar 29, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo
parent
4b3c41d9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
CHANGES.txt
CHANGES.txt
+4
-1
slapos/grid/utils.py
slapos/grid/utils.py
+2
-2
No files found.
CHANGES.txt
View file @
a9c42538
...
@@ -4,7 +4,10 @@ Changes
...
@@ -4,7 +4,10 @@ Changes
0.25 (Unreleased)
0.25 (Unreleased)
-----------------
-----------------
* No change yet.
* Bugfix: Remove CONFIG_SITE from environment variables. On some platforms, it
can change any software's libdir name (to things like lib64) and thus
break all other software trying to fetch libraries.
[Cedric de Saint Martin]
0.24 (2012-03-29)
0.24 (2012-03-29)
-----------------
-----------------
...
...
slapos/grid/utils.py
View file @
a9c42538
...
@@ -65,7 +65,7 @@ SYSTEM_ENVIRONMENT_REMOVE_LIST = [
...
@@ -65,7 +65,7 @@ SYSTEM_ENVIRONMENT_REMOVE_LIST = [
'CONFIG_SITE'
,
'CONFIG_SITE'
,
]
]
LOCALE_ENVIRON
EM
NT_REMOVE_LIST
=
[
LOCALE_ENVIRON
ME
NT_REMOVE_LIST
=
[
'LANG'
,
'LANG'
,
'LANGUAGE'
,
'LANGUAGE'
,
'LC_ADDRESS'
,
'LC_ADDRESS'
,
...
@@ -108,7 +108,7 @@ def getCleanEnvironment(home_path='/tmp'):
...
@@ -108,7 +108,7 @@ def getCleanEnvironment(home_path='/tmp'):
env
=
os
.
environ
.
copy
()
env
=
os
.
environ
.
copy
()
# Clean python related environment variables
# Clean python related environment variables
for
k
in
PYTHON_ENVIRONMENT_REMOVE_LIST
+
SYSTEM_ENVIRONMENT_REMOVE_LIST
\
for
k
in
PYTHON_ENVIRONMENT_REMOVE_LIST
+
SYSTEM_ENVIRONMENT_REMOVE_LIST
\
+
LOCALE_ENVIRON
EM
NT_REMOVE_LIST
:
+
LOCALE_ENVIRON
ME
NT_REMOVE_LIST
:
old
=
env
.
pop
(
k
,
None
)
old
=
env
.
pop
(
k
,
None
)
if
old
is
not
None
:
if
old
is
not
None
:
removed_env
.
append
(
k
)
removed_env
.
append
(
k
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment