[evolution-data-server] cache-reaper: Skip directories named "system".
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] cache-reaper: Skip directories named "system".
- Date: Fri, 17 Aug 2012 13:24:28 +0000 (UTC)
commit b17916c3f78532379c902e46eb2d779b2709bb70
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Aug 17 09:23:38 2012 -0400
cache-reaper: Skip directories named "system".
modules/cache-reaper/module-cache-reaper.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/modules/cache-reaper/module-cache-reaper.c b/modules/cache-reaper/module-cache-reaper.c
index c53f92d..08472be 100644
--- a/modules/cache-reaper/module-cache-reaper.c
+++ b/modules/cache-reaper/module-cache-reaper.c
@@ -276,6 +276,13 @@ cache_reaper_scan_directory (ECacheReaper *extension,
if (g_strcmp0 (name, TRASH_DIRECTORY_NAME) == 0)
goto next;
+ /* Also skip directories named "system". For backward
+ * compatibility, data directories for built-in sources
+ * are named "system" instead of "system-address-book"
+ * or "system-calendar" or what have you. */
+ if (g_strcmp0 (name, "system") == 0)
+ goto next;
+
source = e_source_registry_server_ref_source (server, name);
if (source == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]