[gnome-packagekit] Ensure files created with gpk-service-pack do not have '; ' in them



commit 7b17ee4d0f9637cd592f65fc51a616a1f13a41ed
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jul 1 13:31:46 2010 +0100

    Ensure files created with gpk-service-pack do not have ';' in them

 src/gpk-service-pack.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-service-pack.c b/src/gpk-service-pack.c
index d759b40..091d916 100644
--- a/src/gpk-service-pack.c
+++ b/src/gpk-service-pack.c
@@ -80,6 +80,10 @@ gpk_pack_get_default_filename (const gchar *directory)
 	g_object_get (control,
 		      "distro-id", &distro_id,
 		      NULL);
+
+	/* make a sane filename */
+	g_strdelimit (distro_id, ";", '-');
+
 	if (action == GPK_ACTION_ENUM_PACKAGE) {
 		entry = GTK_ENTRY (gtk_builder_get_object (builder, "entry_package"));
 		package = gtk_entry_get_text (entry);



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