
Le samedi 18 août 2012, à 12:00 +0200, Stefan Seyfried a écrit :
Am 18.08.2012 09:19, schrieb Vincent Untz:
For the record, PackageKit running and refusing to quit usually happens when it's busy downloading something -- I would guess it does the equivalent of "zypper ref".
Can't packagekit tell what it is busy with right now? I think the biggest problem is that there is no feedback from packagekit at all for almost everything it does AFAICT. And a "zypper ref" can easily take very very long if e.g. the debuginfo repo is enabled and the internet connection is "slow" (less than, say, 10 Mbits/second).
There is a GetDaemonState dbus method, so it could possibly be done. gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --method org.freedesktop.PackageKit.GetDaemonState Exemple of output: ('State:\n0\tget-distro-upgrades\t/47_cbbcbbed_data\tstate[finished] background[0]\n1\tget-updates\t/48_ccdaaddb_data\tstate[running] background[0]\n',) Cheers, Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org