Add filesnum variable for image

master
Mike Hiretsky 12 years ago
parent e30a0c5577
commit ad97bc7e47

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
__version__ = "2.2.28"
__version__ = "2.2.28.1"
__app__ = "calculate-builder"
import os

@ -23,7 +23,7 @@ from os import access, R_OK,W_OK
from os import path
from cl_distr import Distributive
from cl_utils import getTupleVersion,genpassword,pathJoin,_toUNICODE, \
getFilesCount,getCmdLineParam
getFilesCount,getCmdLineParam,countFiles
from operator import itemgetter
from types import ListType
from cl_datavars import iniParser
@ -276,6 +276,11 @@ class fillVars(object, varsShare):
self.detectOtherShortname(systemRoot) or \
"Linux"
def get_os_builder_linux_filesnum(self):
"""Files number in image system"""
systemRoot = self.Get('cl_builder_path')
return str(countFiles(systemRoot))
def get_os_builder_linux_ver(self):
"""Build system ver"""
linuxShortName = self.Get("os_builder_linux_shortname")

@ -117,6 +117,9 @@ class Data:
# build system build
os_builder_linux_build = {'mode':'r','value':''}
# filesnum in build system
os_builder_linux_filesnum = {'mode':'r'}
# build system arch
os_builder_arch_machine = {}

Loading…
Cancel
Save