/* * trig is not copied! * * @retval true For done. * @retval false For already noted. */ bool trig_note_pend(struct pkginfo *pend, const char *trig) { if (!trig_note_pend_core(pend, trig)) return false; pend->status = pend->trigaw.head ? stat_triggersawaited : stat_triggerspending; return true; }
/* * trig is not copied! * * @retval true For done. * @retval false For already noted. */ bool trig_note_pend(struct pkginfo *pend, const char *trig) { if (!trig_note_pend_core(pend, trig)) return false; if (pend->trigaw.head) pkg_set_status(pend, PKG_STAT_TRIGGERSAWAITED); else pkg_set_status(pend, PKG_STAT_TRIGGERSPENDING); return true; }
/* * trig is not copied! * * @retval true For done. * @retval false For already noted. */ bool trig_note_pend(struct pkginfo *pend, const char *trig) { if (!trig_note_pend_core(pend, trig)) return false; if (pend->trigaw.head) pkg_set_status(pend, stat_triggersawaited); else pkg_set_status(pend, stat_triggerspending); return true; }