summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/recipeutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index d8094c8769..ccec2a1444 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -620,7 +620,7 @@ def replace_dir_vars(path, d):
620 for var in d: 620 for var in d:
621 if var.endswith('dir') and var.lower() == var: 621 if var.endswith('dir') and var.lower() == var:
622 value = d.getVar(var, True) 622 value = d.getVar(var, True)
623 if value.startswith('/') and not '\n' in value: 623 if value.startswith('/') and not '\n' in value and value not in dirvars:
624 dirvars[value] = var 624 dirvars[value] = var
625 for dirpath in sorted(dirvars.keys(), reverse=True): 625 for dirpath in sorted(dirvars.keys(), reverse=True):
626 path = path.replace(dirpath, '${%s}' % dirvars[dirpath]) 626 path = path.replace(dirpath, '${%s}' % dirvars[dirpath])