[gnome-packagekit] Return with success if we try to install no packages
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Return with success if we try to install no packages
- Date: Fri, 23 Mar 2012 10:17:50 +0000 (UTC)
commit fead6ce3fb4d8e71847ec5373450373fe8c28779
Author: Richard Hughes <richard hughsie com>
Date: Fri Mar 23 10:16:33 2012 +0000
Return with success if we try to install no packages
Release Team Approval: Andre Klapper <ak-47 gmx net>
Release Team Approval: Javier JardÃn <jjardon gnome org>
src/gpk-dbus-task.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
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 */
if (len == 1) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]