[gnome-packagekit] Support the new origin package-id extension by ignoring the extra encoded data



commit 9bceee75841b552da768962fbcad2a9678c5f39c
Author: Richard Hughes <richard hughsie com>
Date:   Thu Dec 9 12:16:51 2010 +0000

    Support the new origin package-id extension by ignoring the extra encoded data

 src/gpk-application.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 4ff8cdd..073d95e 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -2282,7 +2282,7 @@ gpk_application_get_details_cb (PkClient *client, GAsyncResult *res, gpointer us
 		      NULL);
 
 	split = pk_package_id_split (package_id);
-	installed = g_strcmp0 (split[PK_PACKAGE_ID_DATA], "installed") == 0;
+	installed = g_str_has_prefix (split[PK_PACKAGE_ID_DATA], "installed");
 
 	/* if a collection, mark as such */
 	if (g_strcmp0 (split[PK_PACKAGE_ID_DATA], "meta") == 0)



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