diff options
-rw-r--r-- | bitbake/lib/bb/data.py | 3 |
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 | ||
52 | def init(): | 52 | def init(): |
53 | """Return a new object representing the Bitbake data""" | ||
53 | return _dict_type() | 54 | return _dict_type() |
54 | 55 | ||
55 | def init_db(parent = None): | 56 | def 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: |