update-alternatives.bbclass: don't expand var when appending do_install
Or else absolute paths may be expanded which then breaks sstate signature comparison. I'm not sure whether pre/post funcs can be expanded or not. They are invoked at image build or on the target, and thus need be expanded some place. But if one recipe does use directories under TMP in its postinst helpers, this would be an issue again. Signed-off-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
parent
bd3b63179c
commit
ad0e271a03
|
@ -79,8 +79,8 @@ fi
|
|||
|
||||
def update_alternatives_after_parse(d):
|
||||
if bb.data.getVar('ALTERNATIVE_LINKS', d) != None:
|
||||
doinstall = bb.data.getVar('do_install', d, 1)
|
||||
doinstall += bb.data.getVar('update_alternatives_batch_doinstall', d, 1)
|
||||
doinstall = bb.data.getVar('do_install', d, 0)
|
||||
doinstall += bb.data.getVar('update_alternatives_batch_doinstall', d, 0)
|
||||
bb.data.setVar('do_install', doinstall, d)
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue