|
|
@ -26,6 +26,7 @@ from calculate.lib.utils.common import (getVideoFromXorgLog,
|
|
|
|
getAvailableVideo, getValueFromCmdLine,
|
|
|
|
getAvailableVideo, getValueFromCmdLine,
|
|
|
|
getCompositeFromXorgconf, getVideoFromModules,
|
|
|
|
getCompositeFromXorgconf, getVideoFromModules,
|
|
|
|
getVideoFromVendor,getInstalledVideo)
|
|
|
|
getVideoFromVendor,getInstalledVideo)
|
|
|
|
|
|
|
|
from calculate.install.distr import DistributiveError
|
|
|
|
|
|
|
|
|
|
|
|
from calculate.lib.cl_lang import setLocalTranslate
|
|
|
|
from calculate.lib.cl_lang import setLocalTranslate
|
|
|
|
setLocalTranslate('cl_install3',sys.modules[__name__])
|
|
|
|
setLocalTranslate('cl_install3',sys.modules[__name__])
|
|
|
@ -109,10 +110,13 @@ class VariableOsInstallX11VideoAvailable(VideoVariable):
|
|
|
|
image = self.Get('cl_image')
|
|
|
|
image = self.Get('cl_image')
|
|
|
|
if image:
|
|
|
|
if image:
|
|
|
|
with image as distr:
|
|
|
|
with image as distr:
|
|
|
|
|
|
|
|
try:
|
|
|
|
distrPath = image.getDirectory()
|
|
|
|
distrPath = image.getDirectory()
|
|
|
|
if isPkgInstalled('xorg-server',prefix=distrPath):
|
|
|
|
if isPkgInstalled('xorg-server',prefix=distrPath):
|
|
|
|
return sorted(filter(self.supported.__contains__,
|
|
|
|
return sorted(filter(self.supported.__contains__,
|
|
|
|
getAvailableVideo(prefix=distrPath)))+['other']
|
|
|
|
getAvailableVideo(prefix=distrPath)))+['other']
|
|
|
|
|
|
|
|
except DistributiveError as e:
|
|
|
|
|
|
|
|
pass
|
|
|
|
return []
|
|
|
|
return []
|
|
|
|
|
|
|
|
|
|
|
|
class VariableOsX11KmsVideoDrv(ReadonlyVariable):
|
|
|
|
class VariableOsX11KmsVideoDrv(ReadonlyVariable):
|
|
|
|