update-rc.d.bbclass: add code at start of post install scripts so it will be called on host
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4976 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
parent
34d7e090e8
commit
5e12400fcb
|
@ -45,10 +45,12 @@ python populate_packages_prepend () {
|
|||
bb.data.setVar("OVERRIDES", "%s:%s" % (pkg, overrides), localdata)
|
||||
bb.data.update_data(localdata)
|
||||
|
||||
postinst = bb.data.getVar('pkg_postinst', localdata, 1)
|
||||
if not postinst:
|
||||
postinst = '#!/bin/sh\n'
|
||||
postinst = '#!/bin/sh\n'
|
||||
postinst += bb.data.getVar('updatercd_postinst', localdata, 1)
|
||||
try:
|
||||
postinst += bb.data.getVar('pkg_postinst', localdata, 1)
|
||||
except:
|
||||
pass
|
||||
bb.data.setVar('pkg_postinst_%s' % pkg, postinst, d)
|
||||
prerm = bb.data.getVar('pkg_prerm', localdata, 1)
|
||||
if not prerm:
|
||||
|
|
Loading…
Reference in New Issue