Skip to contentSkip to conversation

systemd: Track postinst/prerm in task checksum

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: Track postinst/prerm 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/systemd.bbclass +3 -0
index eab8735..3700b2e 100644
@@ -48,6 +48,9 @@ if type systemctl >/dev/null 2>/dev/null; then
 fi
 }
 
+
+systemd_populate_packages[vardeps] += "systemd_prerm systemd_postinst"
+
 python systemd_populate_packages() {
     if "systemd" not in d.getVar("DISTRO_FEATURES", True).split():
         return