no necessity to depend on the dict hash to do the tar up

This commit is contained in:
Manuel Amador (Rudd-O) 2010-09-01 14:45:53 -07:00
parent 20731c90f9
commit df2455a39e
1 changed files with 1 additions and 8 deletions

View File

@ -53,16 +53,9 @@ def apply_tar(self):
node = self.path.find_resource(x)
if not node:raise Utils.WafError('cannot find input file %s for processing'%x)
ins.append(node)
if self.dict and not self.env['DICT_HASH']:
self.env=self.env.copy()
keys=list(self.dict.keys())
keys.sort()
lst=[self.dict[x]for x in keys]
self.env['DICT_HASH']=str(Utils.h_list(lst))
tsk=self.create_task('tar',ins,out)
tsk.fun=self.fun
tsk.dict=self.dict
tsk.dep_vars=['DICT_HASH']
tsk.install_path=self.install_path
tsk.chmod=self.chmod
if not tsk.env:
@ -71,4 +64,4 @@ def apply_tar(self):
Task.task_type_from_func('tar',func=tar_up)
feature('tar')(apply_tar)
before('apply_core')(apply_tar)
before('apply_core')(apply_tar)