summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/data.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 554532841a..e11fe9833e 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -50,9 +50,12 @@ import bb
50_dict_type = data_smart.DataSmart 50_dict_type = data_smart.DataSmart
51 51
52def init(): 52def init():
53 """Return a new object representing the Bitbake data"""
53 return _dict_type() 54 return _dict_type()
54 55
55def init_db(parent = None): 56def init_db(parent = None):
57 """Return a new object representing the Bitbake data,
58 optionally based on an existing object"""
56 if parent: 59 if parent:
57 return parent.createCopy() 60 return parent.createCopy()
58 else: 61 else: