diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2006-03-22 16:03:39 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2006-03-22 16:03:39 +0000 |
commit | 2658d3c95d43dfcff95a6cd7285f3966dfa5bb2e (patch) | |
tree | 65716f18f61c817cbcdef58a9bbb95de8101ced4 /lib/bb/data_smart.py | |
parent | d278633c0bebe89ab2490856f57540fe263bb545 (diff) | |
download | bitbake-2658d3c95d43dfcff95a6cd7285f3966dfa5bb2e.tar.gz |
lib/bb/data_smart.py:
ReAdd the handlers when unpickling the file
parse/parse_py/BBHandler.py:
Save the once added handlers in the bitbake
file.
Diffstat (limited to 'lib/bb/data_smart.py')
-rw-r--r-- | lib/bb/data_smart.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py index 52f391dec..93a6acfc9 100644 --- a/lib/bb/data_smart.py +++ b/lib/bb/data_smart.py @@ -285,11 +285,20 @@ class DataSmartPackage(DataSmart): p = pickle.Unpickler( file("%s/%s"%(self.cache,cache_bbfile),"rb")) self.dict = p.load() self.unpickle_prep() + + # compile the functions into global scope funcstr = self.getVar('__functions__', 0) if funcstr: comp = utils.better_compile(funcstr, "<pickled>", self.bbfile) utils.better_exec(comp, __builtins__, funcstr, self.bbfile) + # now add the handlers which were present + handlers = self.getVar('__all_handlers__', 0) or {} + import bb.event + for key in handlers.keys(): + bb.event.register(key, handlers[key]) + + def linkDataSet(self): if not self.parent == None: # assume parent is a DataSmartInstance |