diff options
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/recipeutils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index bd812ccbd1..78d69267ac 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py | |||
@@ -617,7 +617,8 @@ def find_layerdir(fn): | |||
617 | def replace_dir_vars(path, d): | 617 | def replace_dir_vars(path, d): |
618 | """Replace common directory paths with appropriate variable references (e.g. /etc becomes ${sysconfdir})""" | 618 | """Replace common directory paths with appropriate variable references (e.g. /etc becomes ${sysconfdir})""" |
619 | dirvars = {} | 619 | dirvars = {} |
620 | for var in d: | 620 | # Sort by length so we get the variables we're interested in first |
621 | for var in sorted(d.keys(), key=len): | ||
621 | if var.endswith('dir') and var.lower() == var: | 622 | if var.endswith('dir') and var.lower() == var: |
622 | value = d.getVar(var, True) | 623 | value = d.getVar(var, True) |
623 | if value.startswith('/') and not '\n' in value and value not in dirvars: | 624 | if value.startswith('/') and not '\n' in value and value not in dirvars: |