Исправлена настройка opengl

master3.3
Mike khiretskiy 11 years ago
parent b24f03e2ce
commit f4b9fb94bf

@ -350,7 +350,7 @@ class Install:
newModuleName = defaultGL newModuleName = defaultGL
curModuleName = map(lambda x:x.strip().rpartition('=')[-1].strip('"\''), curModuleName = map(lambda x:x.strip().rpartition('=')[-1].strip('"\''),
filter(lambda x: x.startswith("OPENGL_PROFILE="), filter(lambda x: x.startswith("OPENGL_PROFILE="),
open(openGLenv,'r'))) readFile(openGLenv)))
curModuleName = curModuleName[-1] if curModuleName else "" curModuleName = curModuleName[-1] if curModuleName else ""
if curModuleName == newModuleName: if curModuleName == newModuleName:
return True return True

@ -18,6 +18,7 @@ import sys
from calculate.core.server.func import Action,Tasks from calculate.core.server.func import Action,Tasks
from calculate.lib.cl_lang import setLocalTranslate,getLazyLocalTranslate from calculate.lib.cl_lang import setLocalTranslate,getLazyLocalTranslate
from calculate.lib.utils.files import FilesError from calculate.lib.utils.files import FilesError
from calculate.lib.utils.portage import isPkgInstalled
from calculate.install.install import (MigrationError, TemplatesError, from calculate.install.install import (MigrationError, TemplatesError,
InstallError, InstallError,
AutopartitionError, DistributiveError) AutopartitionError, DistributiveError)
@ -43,10 +44,12 @@ class ClSetupVideoAction(Action):
{'name':'check_video', {'name':'check_video',
'message':__("Checking the video driver"), 'message':__("Checking the video driver"),
'method':'Install.checkVideoDriver()', 'method':'Install.checkVideoDriver()',
'condition': lambda:isPkgInstalled('xorg-server')
}, },
{'name':'setup_opengl', {'name':'setup_opengl',
'message':__("Configuring OpenGL"), 'message':__("Configuring OpenGL"),
'method':'Install.setupOpenGL()', 'method':'Install.setupOpenGL()',
'condition': lambda:isPkgInstalled('xorg-server')
}, },
{'name':'reboot', {'name':'reboot',
'warning':__("To apply the changes, reboot the system"), 'warning':__("To apply the changes, reboot the system"),

Loading…
Cancel
Save