[packagekit] Yum and locking

Richard Hughes hughsient at gmail.com
Thu Oct 18 11:28:47 PDT 2007


On Thu, 2007-10-18 at 10:59 -0400, Robin Norwood wrote:
> Cool.  However, it looks like the way things are now it will just
> abort
> if something else has the lock - shouldn't we wait around awhile, and
> perhaps notify PK with a signal?

What I would rather do is make the daemon aware of what can be
scheduled, when.

I.e. each backend would have a function:

get_no_queue_objects:
return PK_ROLE_ENUM_SEARCH_GROUP | PK_ROLE_ENUM_SEARCH_GROUP

get_force_all_queue_objects
return PK_ROLE_ENUM_REFRESH_CACHE

So the daemon knows what to do. Have a look in
pk_transaction_list_commit in src/pk-transaction-list.c for inspiration.

Ideas?

Richard.





More information about the PackageKit mailing list