[yelp] yelp-view: Allow multiple packages with install: URI
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [yelp] yelp-view: Allow multiple packages with install: URI
- Date: Fri, 21 Oct 2011 21:36:09 +0000 (UTC)
commit f0d8ebbdf4e883379be680c0143f3161fae1f2b8
Author: Shaun McCance <shaunm gnome org>
Date:   Tue Oct 18 15:51:15 2011 -0400
    yelp-view: Allow multiple packages with install: URI
 libyelp/yelp-view.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c
index b817a0e..b02d890 100644
--- a/libyelp/yelp-view.c
+++ b/libyelp/yelp-view.c
@@ -835,8 +835,13 @@ view_install_uri (YelpView    *view,
         g_variant_builder_unref (strv);
     }
     else {
+        gchar **pkgs;
+        gint i;
         strv = g_variant_builder_new (G_VARIANT_TYPE ("as"));
-        g_variant_builder_add (strv, "s", pkg);
+        pkgs = g_strsplit (pkg, ",", 0);
+        for (i = 0; pkgs[i]; i++)
+            g_variant_builder_add (strv, "s", pkgs[i]);
+        g_strfreev (pkgs);
         g_dbus_connection_call (connection,
                                 "org.freedesktop.PackageKit",
                                 "/org/freedesktop/PackageKit",
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]