|
|
|
@ -1124,3 +1124,18 @@ class fillVars(object, glob_attr):
|
|
|
|
|
if drvsForCardsid and drvsForCardsid[0][0] in masks:
|
|
|
|
|
return masks[drvsForCardsid[0][0]]
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
|
|
def get_os_install_linux_build(self):
|
|
|
|
|
"""Linux build"""
|
|
|
|
|
imagename = self.getImage(self.Get('os_install_scratch'),
|
|
|
|
|
self.Get('os_install_root_type'),
|
|
|
|
|
self.Get('cl_image_path'),
|
|
|
|
|
self.Get('os_install_arch_machine'),
|
|
|
|
|
self.Get('os_install_linux_shortname'))
|
|
|
|
|
if imagename:
|
|
|
|
|
res = DistributiveRepository.reDistName.search(imagename)
|
|
|
|
|
if res:
|
|
|
|
|
build = res.groupdict()['ver']
|
|
|
|
|
if re.match('^\d{8}$',build):
|
|
|
|
|
return build
|
|
|
|
|
return ""
|
|
|
|
|