[packagekit] Monitoring transactions for required restarts
Guido Berhoerster
guido+freedesktop.org at berhoerster.name
Fri Jul 6 21:31:53 UTC 2018
* Guido Berhoerster <guido+freedesktop.org at berhoerster.name> [2018-07-06 00:02]:
> I'd like to monitor whether PackageKit transactions initiated by other
> tools necessitate a restart. So I am adopting transactions and call
> pk_results_get_require_restart_worst() on the transaction results in the
> completion callback. However it always returns PK_RESTART_ENUM_UNKNOWN
> even when it clearly shouldn't, i.e. when running "pkcon update" against
> the dummy backend.
> Is this the right way to achieve what I want or am I doing something
> wrong?
So I figured it out after going through the dummy backend code
again, for some rather non-intutive reason updating a fake kernel
package does not trigger a restart required signal. One has to
update "testsocket;0.1;i386;fedora" in order to test that.
--
Guido Berhoerster
More information about the PackageKit
mailing list