From: Ferruccio Guidi Date: Sat, 29 May 2021 08:43:47 +0000 (+0200) Subject: nCicLibrary X-Git-Tag: make_still_working~147 X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=commitdiff_plain;h=42fb6dce8110e29ccf233c09e6d6b1d58d9e5fef nCicLibrary + config flag added to emove old objects before storing new ones I don't even rememberwhy thisisnot done by default --- 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@