]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/packagedata: Fix for new overrides
authorJoshua Watt <JPEWhacker@gmail.com>
Thu, 12 Aug 2021 20:04:12 +0000 (15:04 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Aug 2021 21:43:50 +0000 (22:43 +0100)
Fix read_subpkgdata_dict to account for the new override operator being
":" instead of "_"

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/packagedata.py

index 22261d271eb0233358c7341d6f3b98fc903d6a5c..0b17897e4024951318f4630615875a86dc9f0dea 100644 (file)
@@ -45,14 +45,14 @@ def read_pkgdata(pn, d):
     return read_pkgdatafile(fn)
 
 #
-# Collapse FOO_pkg variables into FOO
+# Collapse FOO:pkg variables into FOO
 #
 def read_subpkgdata_dict(pkg, d):
     ret = {}
     subd = read_pkgdatafile(get_subpkgedata_fn(pkg, d))
     for var in subd:
-        newvar = var.replace("_" + pkg, "")
-        if newvar == var and var + "_" + pkg in subd:
+        newvar = var.replace(":" + pkg, "")
+        if newvar == var and var + ":" + pkg in subd:
             continue
         ret[newvar] = subd[var]
     return ret