summaryrefslogtreecommitdiff
path: root/libyelp/yelp-view.c
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2011-10-18 15:51:15 -0400
committerShaun McCance <shaunm@gnome.org>2011-10-21 16:12:56 -0400
commitf0d8ebbdf4e883379be680c0143f3161fae1f2b8 (patch)
tree12484c2b5ce371b576a358c3df3dbfa0ec065f9c /libyelp/yelp-view.c
parentac24945f7a4f19d49ee1fa738296be2067a38e34 (diff)
downloadyelp-f0d8ebbdf4e883379be680c0143f3161fae1f2b8.tar.gz
yelp-view: Allow multiple packages with install: URI
Diffstat (limited to 'libyelp/yelp-view.c')
-rw-r--r--libyelp/yelp-view.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c
index b817a0e4..b02d890e 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",