mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
buildhistory-collect-srcrevs: Adapt to the new variable override syntax
(From OE-Core rev: bcce0e7cef5768d5cfe58c356f6196af8ce03537) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f42b404a99
commit
881bafcbb9
@@ -53,7 +53,7 @@ def main():
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if options.forcevariable:
|
if options.forcevariable:
|
||||||
forcevariable = '_forcevariable'
|
forcevariable = ':forcevariable'
|
||||||
else:
|
else:
|
||||||
forcevariable = ''
|
forcevariable = ''
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ def main():
|
|||||||
print('# %s' % curdir)
|
print('# %s' % curdir)
|
||||||
for pn, name, srcrev in srcrevs:
|
for pn, name, srcrev in srcrevs:
|
||||||
if name:
|
if name:
|
||||||
print('SRCREV_%s_pn-%s%s = "%s"' % (name, pn, forcevariable, srcrev))
|
print('SRCREV_%s:pn-%s%s = "%s"' % (name, pn, forcevariable, srcrev))
|
||||||
else:
|
else:
|
||||||
print('SRCREV:pn-%s%s = "%s"' % (pn, forcevariable, srcrev))
|
print('SRCREV:pn-%s%s = "%s"' % (pn, forcevariable, srcrev))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user