[gnome-packagekit] Only return the newest packages for mime, fonts and codec helpers and to perhaps fix rh#514879
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Only return the newest packages for mime, fonts and codec helpers and to perhaps fix rh#514879
- Date: Mon, 3 Aug 2009 11:49:51 +0000 (UTC)
commit 239ec9cea21ea727c7e365621952aec7bf2db6ef
Author: Richard Hughes <richard hughsie com>
Date: Fri Jul 31 13:46:12 2009 +0100
Only return the newest packages for mime, fonts and codec helpers and to perhaps fix rh#514879
src/gpk-dbus-task.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/gpk-dbus-task.c b/src/gpk-dbus-task.c
index 36ce3d4..d011f85 100644
--- a/src/gpk-dbus-task.c
+++ b/src/gpk-dbus-task.c
@@ -2242,7 +2242,9 @@ gpk_dbus_task_install_gstreamer_codec_part (GpkDbusTask *task, const gchar *code
/* get codec packages, FIXME: synchronous! */
pk_client_set_synchronous (task->priv->client_primary, TRUE, NULL);
- ret = pk_client_what_provides (task->priv->client_primary, pk_bitfield_value (PK_FILTER_ENUM_NOT_INSTALLED), PK_PROVIDES_ENUM_CODEC, codec_desc, error);
+ ret = pk_client_what_provides (task->priv->client_primary,
+ pk_bitfield_from_enums (PK_FILTER_ENUM_NOT_INSTALLED, PK_FILTER_ENUM_NEWEST, -1),
+ PK_PROVIDES_ENUM_CODEC, codec_desc, error);
pk_client_set_synchronous (task->priv->client_primary, FALSE, NULL);
if (!ret)
return NULL;
@@ -2604,7 +2606,8 @@ skip_checks:
pk_client_set_timeout (task->priv->client_primary, task->priv->timeout, NULL);
/* action */
- ret = pk_client_what_provides (task->priv->client_primary, 0,//pk_bitfield_value (PK_FILTER_ENUM_NOT_INSTALLED),
+ ret = pk_client_what_provides (task->priv->client_primary,
+ pk_bitfield_from_enums (PK_FILTER_ENUM_NOT_INSTALLED, PK_FILTER_ENUM_NEWEST, -1),
PK_PROVIDES_ENUM_MIMETYPE, mime_types[0], &error_local);
if (!ret) {
/* TRANSLATORS: we failed to find the package, this shouldn't happen */
@@ -2850,7 +2853,8 @@ skip_checks:
/* action: FIXME: synchronous */
pk_client_set_synchronous (task->priv->client_primary, TRUE, NULL);
- ret = pk_client_what_provides (task->priv->client_primary, pk_bitfield_value (PK_FILTER_ENUM_NOT_INSTALLED),
+ ret = pk_client_what_provides (task->priv->client_primary,
+ pk_bitfield_from_enums (PK_FILTER_ENUM_NOT_INSTALLED, PK_FILTER_ENUM_NEWEST, -1),
PK_PROVIDES_ENUM_FONT, fonts[i], &error_local);
pk_client_set_synchronous (task->priv->client_primary, FALSE, NULL);
if (!ret) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]