From: <svn...@op...> - 2009-10-16 13:48:41
|
Author: bellmich Date: Fri Oct 16 15:48:26 2009 New Revision: 1334 URL: http://libsyncml.opensync.org/changeset/1334 Log: fixed handling of committed delete commands Modified: trunk/tools/syncml-ds-tool.c Modified: trunk/tools/syncml-ds-tool.c ============================================================================== --- trunk/tools/syncml-ds-tool.c Fri Oct 16 15:21:13 2009 (r1333) +++ trunk/tools/syncml-ds-tool.c Fri Oct 16 15:48:26 2009 (r1334) @@ -1583,7 +1583,8 @@ if (!digest && *error) goto error; - g_key_file_set_string(datastore->index, "committed_index", key, digest); + if (sml_data_sync_change_item_get_action(item) != SML_CHANGE_DELETE) + g_key_file_set_string(datastore->index, "committed_index", key, digest); if (!g_key_file_remove_key(datastore->index, "change_index", key, error)) goto error; |