diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-07-29 10:12:13 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-07-29 10:12:13 +0000 |
commit | 5e12400fcbb65264cda47604da2960d01819e27b (patch) | |
tree | fed83eb78b08d268c99142a608e6aed60d4c2b5c /meta/classes | |
parent | 34d7e090e89b4735f37adfb32e56a82fcff0bfc4 (diff) | |
download | poky-5e12400fcbb65264cda47604da2960d01819e27b.tar.gz |
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
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/update-rc.d.bbclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass index 3051b7933f..9b832c0012 100644 --- a/meta/classes/update-rc.d.bbclass +++ b/meta/classes/update-rc.d.bbclass | |||
@@ -45,10 +45,12 @@ python populate_packages_prepend () { | |||
45 | bb.data.setVar("OVERRIDES", "%s:%s" % (pkg, overrides), localdata) | 45 | bb.data.setVar("OVERRIDES", "%s:%s" % (pkg, overrides), localdata) |
46 | bb.data.update_data(localdata) | 46 | bb.data.update_data(localdata) |
47 | 47 | ||
48 | postinst = bb.data.getVar('pkg_postinst', localdata, 1) | 48 | postinst = '#!/bin/sh\n' |
49 | if not postinst: | ||
50 | postinst = '#!/bin/sh\n' | ||
51 | postinst += bb.data.getVar('updatercd_postinst', localdata, 1) | 49 | postinst += bb.data.getVar('updatercd_postinst', localdata, 1) |
50 | try: | ||
51 | postinst += bb.data.getVar('pkg_postinst', localdata, 1) | ||
52 | except: | ||
53 | pass | ||
52 | bb.data.setVar('pkg_postinst_%s' % pkg, postinst, d) | 54 | bb.data.setVar('pkg_postinst_%s' % pkg, postinst, d) |
53 | prerm = bb.data.getVar('pkg_prerm', localdata, 1) | 55 | prerm = bb.data.getVar('pkg_prerm', localdata, 1) |
54 | if not prerm: | 56 | if not prerm: |