From 42fb6dce8110e29ccf233c09e6d6b1d58d9e5fef Mon Sep 17 00:00:00 2001 From: Ferruccio Guidi Date: Sat, 29 May 2021 10:43:47 +0200 Subject: [PATCH] nCicLibrary + config flag added to emove old objects before storing new ones I don't even rememberwhy thisisnot done by default --- matita/components/ng_library/nCicLibrary.ml | 5 +++-- matita/matita/matita.conf.xml.in | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/matita/components/ng_library/nCicLibrary.ml b/matita/components/ng_library/nCicLibrary.ml index 0620a6233..e2e7d1b34 100644 --- a/matita/components/ng_library/nCicLibrary.ml +++ b/matita/components/ng_library/nCicLibrary.ml @@ -260,9 +260,10 @@ module Serializer(D: sig type dumpable_s = private #dumpable_status end) = let ch = open_out (ng_path_of_baseuri baseuri) in Marshal.to_channel ch (magic,(status#dump.dependencies,status#dump.objs)) []; close_out ch; -(* + + if Helm_registry.get_bool "matita.remove_old_objects" then remove_objects ~baseuri; (* FG: we remove the old objects before putting the new ones*) -*) + List.iter (function | `Obj (uri,obj) -> diff --git a/matita/matita/matita.conf.xml.in b/matita/matita/matita.conf.xml.in index c16e997bb..851d0e816 100644 --- a/matita/matita/matita.conf.xml.in +++ b/matita/matita/matita.conf.xml.in @@ -15,6 +15,8 @@ $(user.home)/.matita + + false @RT_BASE_DIR@