master
Mike Hiretsky 12 years ago
parent ba7316919a
commit e9cb8091ba

@ -328,7 +328,7 @@ class cl_builder(color_print):
createdDev = self.createUrandom(mp)
self.dispatchConf(mp)
self.updatePortage(mp)
self.clearPortage(mp)
#self.clearPortage(mp)
self.updateMan(mp)
self.removeUrandom(mp,createdDev)
@ -578,8 +578,12 @@ class cl_builder(color_print):
"""Get list for portage exclude by 'cl_builder_tree'"""
if self.clVars.Get('cl_builder_tree') == 'off':
portagePath = pathJoin(sourceDirectory,"usr/portage")
return map(lambda x: path.join("usr/portage",x),
filter(lambda x: not x in ( "eclass", "licenses", "profiles"),
overlayPath = pathJoin(sourceDirectory,"var/lib/layman/calculate")
return map(lambda x: path.join("var/lib/layman/calculate",x),
filter(lambda x: not x in ("distfiles", "eclass", ".git","profiles"),
listDirectory(overlayPath))) + \
map(lambda x: path.join("usr/portage",x),
filter(lambda x: not x in ("distfiles", "eclass", ".git","profiles"),
listDirectory(portagePath)))
else:
return []

@ -70,6 +70,9 @@ CMD_OPTIONS = [{'shortOption':"p",
'optVal':"TIMEZONE",
'help':_("timezone by default")
},
{'longOption':'keep-tree',
'help':_("keep portage tree in image")
},
{'longOption':"set"},
{'shortOption':"f",
'longOption':"force",
@ -170,6 +173,9 @@ class image_cmd(share_cmd):
if values.noisohybrid:
self.logicObj.clVars.Set('cl_builder_isohybrid_set','off',True)
if values.keep_tree:
self.logicObj.clVars.Set('cl_builder_tree','on',True)
if args and args[0] == "squash":
self.logicObj.clVars.Set('cl_builder_iso_path','/mnt/flash',True)
if values.timezone and not self.logicObj.setTimezone(values.timezone):

@ -98,7 +98,7 @@ class Data:
cl_builder_kernel_suffix = {}
# include portage directory from image
cl_builder_tree = {'value':'on'}
cl_builder_tree = {'value':'off'}
cl_builder_isohybrid_set = {'value':'on'}

Loading…
Cancel
Save