diff options
author | I-Fan, Chen <tick@openmoko.com> | 2008-09-29 22:57:45 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2008-10-29 13:49:53 +0100 |
commit | 21fb30fa23351a576ebf1246d9c2bd8bb1a95d26 (patch) | |
tree | 2c7fd3188dbc9486b9304467746baebf6bcae8cc /packages/packagekit/files/03_group_infomation.patch | |
parent | d60a3f961835c5a5896fdbda7be460c97f1aa89b (diff) |
packagekit: modify summary field to support alias Tags.
Diffstat (limited to 'packages/packagekit/files/03_group_infomation.patch')
-rw-r--r-- | packages/packagekit/files/03_group_infomation.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/packages/packagekit/files/03_group_infomation.patch b/packages/packagekit/files/03_group_infomation.patch deleted file mode 100644 index 55872cd6ce..0000000000 --- a/packages/packagekit/files/03_group_infomation.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff --git a/backends/opkg/pk-backend-opkg.c b/backends/opkg/pk-backend-opkg.c -index 2d70108..02966c9 100644 ---- a/backends/opkg/pk-backend-opkg.c -+++ b/backends/opkg/pk-backend-opkg.c -@@ -656,6 +656,8 @@ backend_get_details_thread (PkBackend *backend) - { - PkPackageId *pi; - const gchar *package_id; -+ int group_index; -+ PkGroupEnum group = 0; - opkg_package_t *pkg; - gchar *newid; - -@@ -681,8 +683,16 @@ backend_get_details_thread (PkBackend *backend) - - newid = g_strdup_printf ("%s;%s;%s;%s", pkg->name, pkg->version, pkg->architecture, pkg->repository); - -- pk_backend_details (backend, newid, NULL, 0, pkg->description, pkg->url, pkg->size); -+ if (pkg->tags) { -+ for (group_index = 0; group < PK_GROUP_ENUM_UNKNOWN; group_index++) { -+ group = 1 << group_index; -+ if (!(group & backend_get_groups(backend))) continue; -+ if (opkg_check_tag(pkg, (gchar *)pk_group_enum_to_text(group))) -+ break; -+ } -+ } - -+ pk_backend_details (backend, newid, NULL, group, pkg->description, pkg->url, pkg->size); - g_free (newid); - pk_backend_finished (backend); - return TRUE; |