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



commit b3afcb90f588810f43969363915518bab986b204
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 62048ef..9c02ea9 100644
--- a/src/gpk-service-pack.c
+++ b/src/gpk-service-pack.c
@@ -82,6 +82,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]