Re: Code break requested for gnome-packgekit



On Thu, 2012-03-22 at 14:31 +0000, Richard Hughes wrote:
> diff --git a/src/gpk-dbus-task.c b/src/gpk-dbus-task.c
> index 2f3a6ed..065c213 100644
> --- a/src/gpk-dbus-task.c
> +++ b/src/gpk-dbus-task.c
> @@ -1221,6 +1221,10 @@ gpk_dbus_task_install_package_names
> (GpkDbusTask *dtask, gchar **packages, GpkDb
> 
>         string = g_string_new ("");
>         len = g_strv_length (packages);
> +       if (len == 0) {
> +               gpk_dbus_task_dbus_return_value (dtask, TRUE);
> +               goto out;
> +       }
> 
>         /* don't use a bullet for one item */

release-team approval 1 of 2 (for the updated patch).

andre
-- 
mailto:ak-47 gmx net | failed
http://blogs.gnome.org/aklapper



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]