[gnome-packagekit] trivial: fix compile with old versions of PackageKit



commit 3902a6d414b97c14bd3f5a1fa2a5493da9445404
Author: Richard Hughes <richard hughsie com>
Date:   Mon Sep 7 12:34:10 2009 +0100

    trivial: fix compile with old versions of PackageKit

 src/gpk-dbus-task.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-dbus-task.c b/src/gpk-dbus-task.c
index 2fbb676..6d65cb2 100644
--- a/src/gpk-dbus-task.c
+++ b/src/gpk-dbus-task.c
@@ -2044,6 +2044,7 @@ gpk_dbus_task_install_files_dep_check (GpkDbusTask *task)
 	/* set timeout */
 	pk_client_set_timeout (task->priv->client_primary, task->priv->timeout, NULL);
 
+#if (!PK_CHECK_VERSION(0,5,2))
 	/* find out if this would drag in other packages */
 	ret = pk_client_simulate_install_files (task->priv->client_primary, task->priv->files, &error_local);
 	if (!ret) {
@@ -2053,6 +2054,9 @@ gpk_dbus_task_install_files_dep_check (GpkDbusTask *task)
 		dbus_g_method_return_error (task->priv->context, error);
 		goto out;
 	}
+#else
+	gpk_dbus_task_install_files (task);
+#endif
 
 	/* wait for async reply */
 out:



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