summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r--bitbake/lib/bb/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 521a0683fc..a26635a19a 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -562,7 +562,7 @@ def filter_environment(good_vars):
562 562
563def create_interactive_env(d): 563def create_interactive_env(d):
564 for k in preserved_envvars_exported_interactive(): 564 for k in preserved_envvars_exported_interactive():
565 os.setenv(k, bb.data.getVar(k, d, True)) 565 os.setenv(k, d.getVar(k, True))
566 566
567def approved_variables(): 567def approved_variables():
568 """ 568 """
@@ -601,9 +601,9 @@ def build_environment(d):
601 """ 601 """
602 import bb.data 602 import bb.data
603 for var in bb.data.keys(d): 603 for var in bb.data.keys(d):
604 export = bb.data.getVarFlag(var, "export", d) 604 export = d.getVarFlag(var, "export")
605 if export: 605 if export:
606 os.environ[var] = bb.data.getVar(var, d, True) or "" 606 os.environ[var] = d.getVar(var, True) or ""
607 607
608def remove(path, recurse=False): 608def remove(path, recurse=False):
609 """Equivalent to rm -f or rm -rf""" 609 """Equivalent to rm -f or rm -rf"""