[packagekit] New method: GetDaemonState

Richard Hughes hughsient at gmail.com
Mon Feb 16 02:10:22 PST 2009


FYI: I'm having real problems debugging packagekitd on live systems
(without debuginfo, no compiler). To help me, I've added a
GetDaemonState() method on the main interface. This returns a string of
unspecified format that describes the engine and anything untoward.

e.g.

"""
0	get-updates	/247_dacebbda_data	running[1] committed[0] finished[0]
1	get-updates	/248_acbacbdc_data	running[0] committed[0] finished[1]
2	get-updates	/250_bddcabcd_data	running[1] committed[1] finished[1]
WARNING: 1 have not been committed
ERROR: 2 have inconsistent flags
"""

If you run pkmon with --verbose it'll also print out the engine state.
I'll likely add more information there in the next few days. This makes
things much easier to debug. You probably don't need to wrap this in
packagekit-qt or packagekit-sharp as it's only needed in pkmon.

Richard.




More information about the PackageKit mailing list