Merge "Call rblf.setDefault() when appending to a variable without +="

This commit is contained in:
Cole Faust
2022-03-08 22:58:58 +00:00
committed by Gerrit Code Review
2 changed files with 22 additions and 8 deletions

View File

@@ -993,6 +993,7 @@ endif
def init(g, handle):
cfg = rblf.cfg(handle)
if "hwaddress" not in cfg.get("PRODUCT_PACKAGES", []):
rblf.setdefault(handle, "PRODUCT_PACKAGES")
cfg["PRODUCT_PACKAGES"] = (rblf.mkstrip("%s hwaddress" % " ".join(cfg.get("PRODUCT_PACKAGES", [])))).split()
`,
},