summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-12-15 22:13:52 +0000
committerJoshua Lock <josh@linux.intel.com>2010-03-05 14:37:19 +0000
commit3a92d518b407041fe45fc3401bbddb279fb1b7fd (patch)
tree252e374e805523a53b0e4d5d0d1c57186ef8a1fa
parent9fad50948c57a5dd22321ec80653715b4c0a5888 (diff)
downloadpoky-3a92d518b407041fe45fc3401bbddb279fb1b7fd.tar.gz
bitbake/data_smart.py: Fix error where update-rc.d would not get added to the dependency tree
If there was a variable such as: X_${Y}_append = "Z" The "Z" would be lost if X_${Y} was unset. This was due to a bug in the renameVar function used by expandKeys(). Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--bitbake/lib/bb/data_smart.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index c93aea7fef..988d5c3578 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -171,14 +171,15 @@ class DataSmart:
171 Rename the variable key to newkey 171 Rename the variable key to newkey
172 """ 172 """
173 val = self.getVar(key, 0) 173 val = self.getVar(key, 0)
174 if val is None: 174 if val is not None:
175 return 175 self.setVar(newkey, val)
176
177 self.setVar(newkey, val)
178 176
179 for i in ('_append', '_prepend'): 177 for i in ('_append', '_prepend'):
178 src = self.getVarFlag(key, i)
179 if src is None:
180 continue
181
180 dest = self.getVarFlag(newkey, i) or [] 182 dest = self.getVarFlag(newkey, i) or []
181 src = self.getVarFlag(key, i) or []
182 dest.extend(src) 183 dest.extend(src)
183 self.setVarFlag(newkey, i, dest) 184 self.setVarFlag(newkey, i, dest)
184 185