summaryrefslogtreecommitdiffstats
path: root/meta/classes/update-rc.d.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-04 12:29:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-04 18:25:38 +0100
commit4003218f774c38bb5de0d95a43153f8b8d7fc4ce (patch)
treeb1ff2e6ea4d95d082ef6128f85ff689cc8d1bc16 /meta/classes/update-rc.d.bbclass
parentc5d7100a358244085a697a23790676df5eb4afa3 (diff)
downloadopenembedded-core-contrib-4003218f774c38bb5de0d95a43153f8b8d7fc4ce.tar.gz
udpated-rc.d: Track postinst/prerm/postrm in task checksum
When these functions change, the package should rebuild but currently it does not. We need to add the dependencies manually as the dependency code can't track dynamically created variables. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
-rw-r--r--meta/classes/update-rc.d.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 55885698ae..f726f2f4b1 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -54,6 +54,8 @@ python __anonymous() {
PACKAGESPLITFUNCS_prepend = "populate_packages_updatercd "
+populate_packages_updatercd[vardeps] += "updatercd_prerm updatercd_postrm updatercd_postinst"
+
python populate_packages_updatercd () {
def update_rcd_package(pkg):
bb.debug(1, 'adding update-rc.d calls to postinst/postrm for %s' % pkg)