[packagekit] [PATCH 4/4] Get detail info for dependency packages
Zhang, Qiang Z
qiang.z.zhang at intel.com
Sun Sep 26 01:05:06 PDT 2010
Thanks for your comments, resent later. :)
Thanks
Xiaoqiang
>-----Original Message-----
>From: Richard Hughes [mailto:hughsient at gmail.com]
>Sent: 2010年9月26日 15:52
>To: Zhang, Qiang Z
>Cc: packagekit at lists.freedesktop.org; Nashif, Anas; Zhu, Peter J; Liu, Kent
>Subject: Re: [PATCH 4/4] Get detail info for dependency packages
>
>On 26 September 2010 04:04, Zhang Qiang <qiang.z.zhang at intel.com> wrote:
>> + package_ids = pk_package_ids_from_string
>(package_id);
>> + /* get the details of dependency packages */
>> + pk_client_get_update_detail_async
>(PK_CLIENT(priv->task), package_ids, priv->cancellable,
>>
>+ (PkProgressCallbac
>k) gpk_update_viewer_progress_cb, update_viewer,
>>
>+ (GAsyncReadyCallba
>ck) gpk_update_viewer_get_update_detail_cb, update_viewer);
>> + /* get the size of dependency packages */
>> + pk_client_get_details_async
>(PK_CLIENT(priv->task), package_ids, priv->cancellable,
>>
>+ (PkProgressCallb
>ack) gpk_update_viewer_progress_cb, update_viewer,
>>
>+ (GAsyncReadyCall
>back) gpk_update_viewer_get_details_cb, update_viewer);
>
>Doesn't this need to be wrapped in "if (role ==
>PK_ROLE_ENUM_SIMULATE_UPDATE_PACKAGES) {"?
>
>Otherwise you're going to get the main details and update-info twice, no?
>
>> + g_strfreev(package_ids);
>
>g_strfreev<space>(package_ids);
>
>Please. Thanks.
>
>Richard.
More information about the PackageKit
mailing list