summaryrefslogtreecommitdiffstats
path: root/meta/classes/update-rc.d.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-20 15:19:39 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-20 15:19:39 +0000
commite09dab061470154bb14d172f79c5589d232b3c12 (patch)
tree0657681c4a60c3e7903591a0641a18d0ea6b7ac0 /meta/classes/update-rc.d.bbclass
parent4015d48fcfec627821e9dd420b6c37fa1c60369e (diff)
downloadpoky-e09dab061470154bb14d172f79c5589d232b3c12.tar.gz
classes: Sync with OE - mainly quoting fixes or other minor updates
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@885 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
-rw-r--r--meta/classes/update-rc.d.bbclass9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 768ca61b93..9821eec5b2 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -26,6 +26,7 @@ updatercd_postrm() {
26update-rc.d $D ${INITSCRIPT_NAME} remove 26update-rc.d $D ${INITSCRIPT_NAME} remove
27} 27}
28 28
29
29def update_rc_after_parse(d): 30def update_rc_after_parse(d):
30 import bb 31 import bb
31 if bb.data.getVar('INITSCRIPT_PACKAGES', d) == None: 32 if bb.data.getVar('INITSCRIPT_PACKAGES', d) == None:
@@ -56,10 +57,10 @@ python populate_packages_prepend () {
56 prerm = '#!/bin/sh\n' 57 prerm = '#!/bin/sh\n'
57 prerm += bb.data.getVar('updatercd_prerm', localdata, 1) 58 prerm += bb.data.getVar('updatercd_prerm', localdata, 1)
58 bb.data.setVar('pkg_prerm_%s' % pkg, prerm, d) 59 bb.data.setVar('pkg_prerm_%s' % pkg, prerm, d)
59 postrm = bb.data.getVar('pkg_postrm', localdata, 1) 60 postrm = bb.data.getVar('pkg_postrm', localdata, 1)
60 if not postrm: 61 if not postrm:
61 postrm = '#!/bin/sh\n' 62 postrm = '#!/bin/sh\n'
62 postrm += bb.data.getVar('updatercd_postrm', localdata, 1) 63 postrm += bb.data.getVar('updatercd_postrm', localdata, 1)
63 bb.data.setVar('pkg_postrm_%s' % pkg, postrm, d) 64 bb.data.setVar('pkg_postrm_%s' % pkg, postrm, d)
64 65
65 pkgs = bb.data.getVar('INITSCRIPT_PACKAGES', d, 1) 66 pkgs = bb.data.getVar('INITSCRIPT_PACKAGES', d, 1)