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



commit 32664774aa78b96ea6f4205129297cb9402a201b
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 ce732b3..266c676 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -2365,7 +2365,7 @@ gpk_application_get_details_cb (PkClient *client, GAsyncResult *res, GpkApplicat
 		      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]