[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Efficiency of triggers



Dear mentors,

I'm working at implementing triggers for my yorick-doc package, following the instructions in /usr/share/doc/dpkg-dev/ triggers.txt.gz. I'm noting that with triggerized version, the trigger is actually run very often when several packages trigger it, which is mitigating the usefulness of this approach.

Indeed, the problem is that per the instructions, I've modified my update-yorickdoc utility to call dpkg-trigger when invoked from a package's postinst. dpkg already triggers yorick-doc once after unpacking the newly installed packages, which is sufficient. Later, dpkg configures the various packages in several passes, because of the order of dependencies. Each pass triggers yorick-doc again, and I've gained close to nothing (depending on the dependencies, the situation can be slightly better, identical, or worse than before, if each package need to be configured in its own run).

If I remove the dpkg-trigger call from my update- script, everything goes fine. I still need to check what happens for upgrades rather than installs (but I will require some seep before I do).

So I'm currently thinking that I should, indeed, remove the dpkg- trigger call from the script. Any thought?

Best regards, Thibaut.

--
/* No comment */


Reply to: