Множественные изменения

assemble.env -> builder.env
Исправлено скачивание видеодрайверов
Исправлен список исключения --keep-tree=off
master3.4
Mike Khiretskiy 9 years ago
parent f691d4089b
commit 1a46f3afac

@ -142,7 +142,7 @@ class BuildStorage(object):
""" """
Хранилище в котором находится информация о собираемом дистрибутиве Хранилище в котором находится информация о собираемом дистрибутиве
""" """
ini_file = "/etc/calculate/assemble.env" ini_file = "/etc/calculate/builder.env"
data_dir = path.join(builder_data, "mount") data_dir = path.join(builder_data, "mount")
def __init__(self, data_dir=None, ini_file=None): def __init__(self, data_dir=None, ini_file=None):

@ -55,6 +55,9 @@ class ClBuilderImageAction(Action):
'"-afmR")', '"-afmR")',
'condition': lambda Get: Get('cl_builder_prelink_set') == 'on' 'condition': lambda Get: Get('cl_builder_prelink_set') == 'on'
}, },
{'name': 'reconfigure_vars1',
'method': 'Builder.invalidateVariables("cl_builder_linux_datavars")',
},
# получить видеодрайверы # получить видеодрайверы
{'name': 'fetch_video_drivers', {'name': 'fetch_video_drivers',
'group': __("Fetching video drivers"), 'group': __("Fetching video drivers"),

@ -676,7 +676,6 @@ class VariableClBuilderPkgdir(Variable):
else: else:
return "" return ""
class VariableClBuilderAction(ReadonlyVariable): class VariableClBuilderAction(ReadonlyVariable):
""" """
Дополнительное действие по созданию образа: iso, squash. Дополнительное действие по созданию образа: iso, squash.
@ -1150,9 +1149,10 @@ class VariableClBuilderSquashExclude(ReadonlyVariable):
def get(self): def get(self):
builder_path = self.Get('cl_builder_path') builder_path = self.Get('cl_builder_path')
keep_tree = self.GetBool('cl_builder_keep_tree_set') keep_tree = self.GetBool('cl_builder_keep_tree_set')
excludes = ["", "metadata", "profiles/templates/deprecated"] excludes = ["", "metadata"]
important = [".git", "distfiles", "packages", "eclass", "metadata", important = [".git", "distfiles", "packages", "eclass", "metadata",
"profiles", "layout.conf"] "profiles", "layout.conf"]
exclude_dirs = ["profiles/templates/deprecated"]
def generator(): def generator():
for rep_dn in self.Get('cl_builder_repository_location'): for rep_dn in self.Get('cl_builder_repository_location'):
@ -1161,6 +1161,10 @@ class VariableClBuilderSquashExclude(ReadonlyVariable):
for exclude_name in (x for x in listDirectory(dn) for exclude_name in (x for x in listDirectory(dn)
if x not in important): if x not in important):
yield path.join(rep_dn, exclude_dn, exclude_name)[1:] yield path.join(rep_dn, exclude_dn, exclude_name)[1:]
for exclude_dn in exclude_dirs:
dn = pathJoin(builder_path, rep_dn, exclude_dn)
if path.exists(dn):
yield path.join(rep_dn, exclude_dn)
if not keep_tree and builder_path: if not keep_tree and builder_path:
return list(generator()) return list(generator())

Loading…
Cancel
Save