summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data_smart.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r--bitbake/lib/bb/data_smart.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index dd5c618564..63a32bc6a7 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -607,6 +607,10 @@ class DataSmart(MutableMapping):
607 """ 607 """
608 Rename the variable key to newkey 608 Rename the variable key to newkey
609 """ 609 """
610 if key == newkey:
611 bb.warn("Calling renameVar with equivalent keys (%s) is invalid" % key)
612 return
613
610 if '_remote_data' in self.dict: 614 if '_remote_data' in self.dict:
611 connector = self.dict["_remote_data"]["_content"] 615 connector = self.dict["_remote_data"]["_content"]
612 res = connector.renameVar(key, newkey) 616 res = connector.renameVar(key, newkey)