[gnome-packagekit] Save the package lists to the specified directory, not the system default. Fixes rh#609531



commit eaed0d47955698daba1c7b5e1e3a14987847670b
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jul 1 14:45:06 2010 +0100

    Save the package lists to the specified directory, not the system default. Fixes rh#609531

 src/gpk-service-pack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-service-pack.c b/src/gpk-service-pack.c
index 091d916..6d6bba5 100644
--- a/src/gpk-service-pack.c
+++ b/src/gpk-service-pack.c
@@ -353,7 +353,7 @@ gpk_pack_copy_package_lists (const gchar *filename, GError **error)
 
 	/* convert to a file */
 	data = gpk_pack_package_array_to_string (array);
-	ret = g_file_set_contents (PK_SYSTEM_PACKAGE_LIST_FILENAME, data, -1, &error_local);
+	ret = g_file_set_contents (filename, data, -1, &error_local);
 	if (!ret) {
 		g_set_error (error, 1, 0, _("Could not save to file: %s"), error_local->message);
 		g_error_free (error_local);



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