[packagekit] [PATCH] Set transaction as PK_STATUS_ENUM_WAIT once committed

Zhang, Qiang Z qiang.z.zhang at intel.com
Fri Nov 19 23:28:29 PST 2010

There's also some issue, if no transactions before, pk_transaction_list_commit would running the current transaction (set transaction-->item-->running == true), but the patch set it as 'waiting' after pk_transaction_list_commit returned, it’s a bit confuse.

We also can check 'transaction-->item-->running' first. If it’s false then set transaction status as wait, but we can't use PkTransactionItem directly in pk-transaction.c 


-----Original Message-----
From: Richard Hughes [mailto:hughsient at gmail.com] 
Sent: Saturday, November 20, 2010 5:11 AM
To: Zhang, Qiang Z
Cc: packagekit at lists.freedesktop.org
Subject: Re: [PATCH] Set transaction as PK_STATUS_ENUM_WAIT once commited

On 19 November 2010 07:06, Zhang, Qiang Z <qiang.z.zhang at intel.com> wrote:
> I have not found the proper way to set the status and emit it to 
> client/GUI. So I export pk_transaction_status_changed_emit and make it can be used out of pk-transaction.

Does the attached patch also fix things?


More information about the PackageKit mailing list