diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-23 16:01:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-23 16:01:20 +0100 |
commit | ad098e40e8c57727892819e131bf18308bf244d2 (patch) | |
tree | 74d09618399bd4d6a8ea8b1bd287a5aa3c145080 /meta/lib | |
parent | c2ce3573fb2816cd2023a56b364fae4c0f4455ae (diff) | |
download | openembedded-core-ad098e40e8c57727892819e131bf18308bf244d2.tar.gz openembedded-core-ad098e40e8c57727892819e131bf18308bf244d2.tar.bz2 openembedded-core-ad098e40e8c57727892819e131bf18308bf244d2.zip |
packagedata.py: Fix read_subpkgdata_dict()
If both VAR and VAR_foo are in subd, we need to ensure VAR_foo gets
returned. Currently the code would work randomly. The only current
user is the rpm packaging backend.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/packagedata.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py index ee10a233fa..918e7ad2cc 100644 --- a/meta/lib/oe/packagedata.py +++ b/meta/lib/oe/packagedata.py @@ -58,6 +58,8 @@ def read_subpkgdata_dict(pkg, d): subd = read_pkgdatafile(get_subpkgedata_fn(pkg, d)) for var in subd: newvar = var.replace("_" + pkg, "") + if newvar == var and var + "_" + pkg in subd: + continue ret[newvar] = subd[var] return ret |