|
|
|
@ -193,12 +193,24 @@ class VariableOsLinuxFilesnum(Variable,Linux):
|
|
|
|
|
systemRoot = "/"
|
|
|
|
|
|
|
|
|
|
def get(self):
|
|
|
|
|
"""Get files count. Count files discard because it to long
|
|
|
|
|
"""Depricated variable which contains count files.
|
|
|
|
|
Get files count. Count files discard because it to long
|
|
|
|
|
operation. This value is already count by calculate-builder and
|
|
|
|
|
is placed in calculate3.env"""
|
|
|
|
|
return str(0)
|
|
|
|
|
#return str(countFiles(self.systemRoot))
|
|
|
|
|
|
|
|
|
|
class VariableOsLinuxFiles(Variable,Linux):
|
|
|
|
|
systemRoot = "/"
|
|
|
|
|
|
|
|
|
|
def get(self):
|
|
|
|
|
"""Get files count. Count files discard because it to long
|
|
|
|
|
operation. This value is already count by calculate-builder and
|
|
|
|
|
is placed in calculate3.env"""
|
|
|
|
|
return self.Get('os_linux_filesnum')
|
|
|
|
|
#return str(countFiles(self.systemRoot))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class LinuxDataVars(SimpleDataVars):
|
|
|
|
|
def __init__(self,systemRoot="/"):
|
|
|
|
|
SimpleDataVars.__init__(self,
|
|
|
|
@ -206,6 +218,7 @@ class LinuxDataVars(SimpleDataVars):
|
|
|
|
|
VariableOsLinuxName(),
|
|
|
|
|
VariableOsLinuxSubname(),
|
|
|
|
|
VariableOsLinuxFilesnum(systemRoot=systemRoot),
|
|
|
|
|
VariableOsLinuxFiles(systemRoot=systemRoot),
|
|
|
|
|
VariableOsLinuxSystem(),
|
|
|
|
|
VariableOsLinuxVer(systemRoot=systemRoot),
|
|
|
|
|
VariableOsLinuxBuild(systemRoot=systemRoot))
|
|
|
|
|