summaryrefslogtreecommitdiff
path: root/classes/update-rc.d.oeclass
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-08-28 23:28:13 +0000
committerPhil Blundell <philb@gnu.org>2004-08-28 23:28:13 +0000
commitd119ca68e43c6c438154ad5d735b0ffbf7225beb (patch)
tree3c79bca1b5757b255b75cb5ffcaf020443759649 /classes/update-rc.d.oeclass
parent49867a3485fa9d4984e511e90faf97d57b98e32b (diff)
try to make update-rc.d play better with kernel
BKrev: 4131150dSxrhZ_HQiwqeHm432HBySA
Diffstat (limited to 'classes/update-rc.d.oeclass')
-rw-r--r--classes/update-rc.d.oeclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/update-rc.d.oeclass b/classes/update-rc.d.oeclass
index 41e78b8ab5..6e1ce007ac 100644
--- a/classes/update-rc.d.oeclass
+++ b/classes/update-rc.d.oeclass
@@ -30,6 +30,9 @@ python __anonymous() {
python populate_packages_prepend () {
pkg = oe.data.getVar('PN', d, 1)
+ packages = (oe.data.getVar('PACKAGES', d, 1) or "").split()
+ if not pkg in packages:
+ pkg = packages[0]
oe.note('adding update-rc.d calls to postinst/postrm for %s' % pkg)
postinst = oe.data.getVar('pkg_postinst_%s' % pkg, d, 1) or oe.data.getVar('pkg_postinst', d, 1)
if not postinst: