From: Richard Purdie Date: Thu, 23 Jun 2011 15:01:18 +0000 (+0100) Subject: packagedata.py: Fix read_subpkgdata_dict() X-Git-Tag: 2011-1~1026 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ad098e40e8c57727892819e131bf18308bf244d2;p=openembedded-core.git 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 --- 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