Skip to content
Snippets Groups Projects
Commit 3d39829f authored by Damian Alvarez's avatar Damian Alvarez
Browse files

To fix the system detection

parent db83fef2
Branches
No related tags found
No related merge requests found
...@@ -68,6 +68,8 @@ def installation_vetoer(ec): ...@@ -68,6 +68,8 @@ def installation_vetoer(ec):
"Check whether this package is NOT supposed to be installed in this system, and abort if necessary" "Check whether this package is NOT supposed to be installed in this system, and abort if necessary"
name = ec['name'] name = ec['name']
system_name = os.getenv('LMOD_SYSTEM_NAME') system_name = os.getenv('LMOD_SYSTEM_NAME')
if system_name is None:
with open('/etc/FZJ/systemname') as sn: system_name = sn.read()
if name in VETOED_INSTALLATIONS[system_name]: if name in VETOED_INSTALLATIONS[system_name]:
print_warning( print_warning(
"\nYou are attempting to install software that should not be installed in this system.\n" "\nYou are attempting to install software that should not be installed in this system.\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment