diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2005-05-17 18:15:25 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2005-05-17 18:15:25 +0000 |
commit | 150d9f2341f546392d26992b2adac7e3d1344ea4 (patch) | |
tree | 862fd0f8d4fa38dd39b4d79f98cc6d18c691d40d /lib/bb/data_dict.py | |
parent | c7f7cfd506f504f658088bc0c7ee9f487d8a3d3f (diff) | |
download | bitbake-150d9f2341f546392d26992b2adac7e3d1344ea4.tar.gz |
createCopy:
-Move a createCopy method into data.py
-Make code creating deepcopies of the data instance
use this new createCopy
Diffstat (limited to 'lib/bb/data_dict.py')
-rw-r--r-- | lib/bb/data_dict.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/data_dict.py b/lib/bb/data_dict.py index 8c6f3d836..22dfdf2fe 100644 --- a/lib/bb/data_dict.py +++ b/lib/bb/data_dict.py @@ -25,7 +25,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA. Based on functions from the base bb module, Copyright 2003 Holger Schurig """ -import os, re, sys, types +import os, re, sys, types, copy from bb import note, debug, fatal __setvar_regexp__ = {} @@ -152,6 +152,9 @@ class DataDict: if var in self.dict and "flags" in self.dict[var]: del self.dict[var]["flags"] + def createCopy(self): + return copy.deepcopy(self) + # Dictionary Methods def keys(self): return self.dict.keys() |