Skip to contentSkip to conversation

udpated-rc.d: Track postinst/prerm/postrm in task checksum

PATCH New Richard Purdie 1 participant 1 message Oct 4, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

meta/classes/update-rc.d.bbclass +2 -0
index 5588569..f726f2f 100644
@@ -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)