static void transitional_interest_callback_ro(const char *trig, void *user) { struct pkginfo *pend = user; debug(dbg_triggersdetail, "trig_transitional_interest_callback trig=%s pend=%s", trig, pend->name); if (pend->status >= stat_triggersawaited) trig_note_pend(pend, nfstrsave(trig)); }
static void transitional_interest_callback_ro(const char *trig, void *user, enum trig_options opts) { struct pkginfo *pend = user; debug(dbg_triggersdetail, "trig_transitional_interest_callback trig=%s pend=%s", trig, pkg_describe(pend, pdo_foreign)); if (pend->status >= stat_triggersawaited) trig_note_pend(pend, nfstrsave(trig)); }
static void transitional_interest_callback_ro(const char *trig, struct pkginfo *pkg, struct pkgbin *pkgbin, enum trig_options opts) { struct pkginfo *pend = pkg; struct pkgbin *pendbin = pkgbin; debug(dbg_triggersdetail, "trig_transitional_interest_callback trig=%s pend=%s", trig, pkgbin_name(pend, pendbin, pnaw_always)); if (pend->status >= PKG_STAT_TRIGGERSAWAITED) trig_note_pend(pend, nfstrsave(trig)); }
/* * 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); } }