|
|
|
@ -22,7 +22,7 @@ import re
|
|
|
|
|
import sys
|
|
|
|
|
import traceback
|
|
|
|
|
from os import path
|
|
|
|
|
from cl_utils import process,pathJoin,getRunCommands
|
|
|
|
|
from cl_utils import process,pathJoin,getRunCommands,getTupleVersion
|
|
|
|
|
from subprocess import STDOUT,PIPE
|
|
|
|
|
from cl_print import color_print
|
|
|
|
|
from cl_datavars import DataVars
|
|
|
|
@ -264,8 +264,11 @@ class cl_builder(color_print):
|
|
|
|
|
if path.realpath(self.clVars.Get('cl_builder_path')) == "/":
|
|
|
|
|
self.printERROR(_("Source system should not be '/'"))
|
|
|
|
|
return False
|
|
|
|
|
if self.clVars.Get('os_builder_linux_ver') == "0":
|
|
|
|
|
self.printERROR(_("Can not found distributive version"))
|
|
|
|
|
minver = "10.8"
|
|
|
|
|
if getTupleVersion(self.clVars.Get('os_builder_linux_ver')) < \
|
|
|
|
|
getTupleVersion(minver):
|
|
|
|
|
self.printERROR(_("Command is supported for system not less version"
|
|
|
|
|
" %s") % minver )
|
|
|
|
|
return False
|
|
|
|
|
elif not self.clVars.Get('os_builder_linux_shortname') in \
|
|
|
|
|
varsShare.dictNameSystem.keys():
|
|
|
|
|