gnome-packagekit r315 - trunk/src



Author: rhughes
Date: Sun Sep 28 11:04:40 2008
New Revision: 315
URL: http://svn.gnome.org/viewvc/gnome-packagekit?rev=315&view=rev

Log:
from git

Modified:
   trunk/src/gpk-application.c
   trunk/src/gpk-client.c
   trunk/src/gpk-update-viewer.c

Modified: trunk/src/gpk-application.c
==============================================================================
--- trunk/src/gpk-application.c	(original)
+++ trunk/src/gpk-application.c	Sun Sep 28 11:04:40 2008
@@ -616,7 +616,7 @@
 {
 	gchar *exec;
 	GError *error = NULL;
-	gchar **array;
+	gchar **package_ids;
 	GtkTreeView *treeview;
 	GtkTreeModel *model;
 	GtkTreeIter iter;
@@ -644,8 +644,8 @@
 	/* only if installed */
 	if (pk_bitfield_contain (state, GPK_STATE_INSTALLED)) {
 		/* run this single package id */
-		array = g_strsplit (package_id, "|", 1);
-		exec = gpk_client_run_show (array);
+		package_ids = pk_package_ids_from_id (package_id);
+		exec = gpk_client_run_show (package_ids);
 		if (exec != NULL) {
 			ret = g_spawn_command_line_async (exec, &error);
 			if (!ret) {
@@ -654,7 +654,7 @@
 			}
 		}
 		g_free (exec);
-		g_strfreev (array);
+		g_strfreev (package_ids);
 	}
 	g_free (package_id);
 }

Modified: trunk/src/gpk-client.c
==============================================================================
--- trunk/src/gpk-client.c	(original)
+++ trunk/src/gpk-client.c	Sun Sep 28 11:04:40 2008
@@ -2070,7 +2070,7 @@
 	}
 
 	/* install this specific package */
-	package_ids = g_strsplit (package_id, "|", 1);
+	package_ids = pk_package_ids_from_id (package_id);
 	ret = gpk_client_install_package_ids (gclient, package_ids, error);
 out:
 	if (list != NULL)

Modified: trunk/src/gpk-update-viewer.c
==============================================================================
--- trunk/src/gpk-update-viewer.c	(original)
+++ trunk/src/gpk-update-viewer.c	Sun Sep 28 11:04:40 2008
@@ -815,7 +815,7 @@
 	}
 
 	string = g_string_new ("");
-	package_ids = g_strsplit (package_ids_delimit, "^", 0);
+	package_ids = pk_package_ids_from_text (package_ids_delimit);
 	length = g_strv_length (package_ids);
 	for (i=0; i<length; i++) {
 		id = pk_package_id_new_from_string (package_ids[i]);



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