/* * aw might be NULL. * trig is not copied! */ static void trig_record_activation(struct pkginfo *pend, struct pkginfo *aw, const char *trig) { if (pend->status < PKG_STAT_TRIGGERSAWAITED) return; /* Not interested then. */ if (trig_note_pend(pend, trig)) modstatdb_note_ifwrite(pend); if (trigh.enqueue_deferred) trigh.enqueue_deferred(pend); if (aw && pend->status > PKG_STAT_CONFIGFILES) if (trig_note_aw(pend, aw)) { if (aw->status > PKG_STAT_TRIGGERSAWAITED) pkg_set_status(aw, PKG_STAT_TRIGGERSAWAITED); modstatdb_note_ifwrite(aw); } }
/* * aw might be NULL. * trig is not copied! */ static void trig_record_activation(struct pkginfo *pend, struct pkginfo *aw, const char *trig) { if (pend->status < stat_triggersawaited) return; /* Not interested then. */ if (trig_note_pend(pend, trig)) modstatdb_note_ifwrite(pend); if (trigh.enqueue_deferred) trigh.enqueue_deferred(pend); if (aw && pend->status > stat_configfiles) if (trig_note_aw(pend, aw)) { if (aw->status > stat_triggersawaited) aw->status = stat_triggersawaited; modstatdb_note_ifwrite(aw); } }