mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
lib/oe/classextend: Ensure we don't extend expressions more than once
We could end up with MLPREFIX being prepended to variables like PACKAGE_DYNAMIC. This patch avoids the problem and unbreaks builds. [YOCTO #3389] (From OE-Core rev: 18b401f4f8e931dca08a2e9be34e94c49b5215b9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5e0124f00d
commit
6798c0ef23
|
@ -40,7 +40,9 @@ class ClassExtender(object):
|
|||
var = var.split()
|
||||
newvar = []
|
||||
for v in var:
|
||||
if v.startswith("^"):
|
||||
if v.startswith("^" + self.extname):
|
||||
newvar.append(v)
|
||||
elif v.startswith("^"):
|
||||
newvar.append("^" + self.extname + "-" + v[1:])
|
||||
else:
|
||||
newvar.append(self.extend_name(v))
|
||||
|
|
Loading…
Reference in New Issue
Block a user