[evolution-patches] patch for migration



Some people have reported the migration code failing when migrating 1.4
calendar folders with no calendar.ics/tasks.ics files on them. This
fixes it.
-- 
Rodrigo Moya <rodrigo novell com>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2714
diff -u -p -r1.2714 ChangeLog
--- ChangeLog	18 Apr 2005 14:32:16 -0000	1.2714
+++ ChangeLog	19 Apr 2005 13:30:50 -0000
@@ -1,3 +1,8 @@
+2005-04-19  Rodrigo Moya <rodrigo novell com>
+
+	* gui/migration.c (migrate_ical_folder_to_source): cover the case when
+	there is no calendar.ics/tasks.ics file in the folder to migrate.
+
 2005-04-18  Chenthill Palanisamy  <pchenthill novell com>
 
 	Fixes #274476
Index: gui/migration.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/migration.c,v
retrieving revision 1.35
diff -u -p -r1.35 migration.c
--- gui/migration.c	4 Apr 2005 19:48:18 -0000	1.35
+++ gui/migration.c	19 Apr 2005 13:30:50 -0000
@@ -325,7 +325,7 @@ migrate_ical_folder_to_source (char *old
 		g_warning ("could not find a backend for '%s'", e_source_get_uri (old_source));
 		goto finish;
 	}
-	if (!e_cal_open (old_ecal, TRUE, &error)) {
+	if (!e_cal_open (old_ecal, FALSE, &error)) {
 		g_warning ("failed to load source ecal for migration: '%s' (%s)", error->message,
 			   e_source_get_uri (old_source));
 		goto finish;


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