diff options
author | Phil Blundell <philb@gnu.org> | 2004-06-27 17:43:44 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2004-06-27 17:43:44 +0000 |
commit | 55f4ec5e0b9d7c2e4c9caf6cde11e9dba4bdc4ee (patch) | |
tree | 8a8bcbd823994285bf8521e7897bc578a7964459 /bin | |
parent | 2592e67cf6b575e660a7af8a0c7c45593fdf345c (diff) | |
download | bitbake-contrib-55f4ec5e0b9d7c2e4c9caf6cde11e9dba4bdc4ee.tar.gz |
also pickle the functions listed in __functions
Diffstat (limited to 'bin')
-rw-r--r-- | bin/oe/make.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/oe/make.py b/bin/oe/make.py index 838cd05e1..7cac3d36f 100644 --- a/bin/oe/make.py +++ b/bin/oe/make.py @@ -111,6 +111,11 @@ def load_oefile( oefile ): def pickle_oe( oefile, oe ): p = pickle.Pickler( file( "%s/%s" % ( cache, oefile ), "wb" ), -1 ) p.dump( oe ) + funcstr = data.getVar('__functions', oe) + if funcstr: + funcs = funcstr.split() + for func in funcs: + p.dump(eval(func, globals())) def unpickle_oe( oefile ): p = pickle.Unpickler( file( "%s/%s" % ( cache, oefile ), "rb" ) ) |