mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
lib/oe/util.py: Add MLPREFIX support to prune_suffix()
prune_suffix() also needs be aware of MLPREFIX when changing PN for use in BPN. (From OE-Core rev: 20dd241052afa5ff80b91ebf09b0b48765bc3412) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c18aa8d065
commit
9b227ae991
|
@ -58,7 +58,12 @@ def prune_suffix(var, suffixes, d):
|
|||
# remove it if found
|
||||
for suffix in suffixes:
|
||||
if var.endswith(suffix):
|
||||
return var.replace(suffix, "")
|
||||
var = var.replace(suffix, "")
|
||||
|
||||
prefix = d.getVar("MLPREFIX", True)
|
||||
if prefix and var.startswith(prefix):
|
||||
var = var.replace(prefix, "")
|
||||
|
||||
return var
|
||||
|
||||
def str_filter(f, str, d):
|
||||
|
|
Loading…
Reference in New Issue
Block a user