diff options
-rw-r--r-- | bitbake/lib/bb/data.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index e11fe9833e..85de6bfeb3 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
@@ -157,22 +157,6 @@ def expandKeys(alterdata, readdata = None): | |||
157 | ekey = todolist[key] | 157 | ekey = todolist[key] |
158 | renameVar(key, ekey, alterdata) | 158 | renameVar(key, ekey, alterdata) |
159 | 159 | ||
160 | def expandData(alterdata, readdata = None): | ||
161 | """For each variable in alterdata, expand it, and update the var contents. | ||
162 | Replacements use data from readdata | ||
163 | """ | ||
164 | if readdata == None: | ||
165 | readdata = alterdata | ||
166 | |||
167 | for key in keys(alterdata): | ||
168 | val = getVar(key, alterdata) | ||
169 | if type(val) is not types.StringType: | ||
170 | continue | ||
171 | expanded = expand(val, readdata) | ||
172 | # print "key is %s, val is %s, expanded is %s" % (key, val, expanded) | ||
173 | if val != expanded: | ||
174 | setVar(key, expanded, alterdata) | ||
175 | |||
176 | def inheritFromOS(d): | 160 | def inheritFromOS(d): |
177 | """Inherit variables from the environment.""" | 161 | """Inherit variables from the environment.""" |
178 | for s in os.environ.keys(): | 162 | for s in os.environ.keys(): |