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