]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaDb.ml
Fixed a bug that prevented the removal of the XML files during the
[helm.git] / helm / matita / matitaDb.ml
index 0c10a81e855463ce12ca15b3dac8e407854dc0ce..4e8691f9390316d736ab6455006da7ace0205adc 100644 (file)
@@ -66,7 +66,10 @@ let clean_owner_environment () =
     (fun uri ->
       let uri = Pcre.replace ~rex:xpointer_RE ~templ:"" uri in
       List.iter
-        (fun suffix -> MatitaMisc.safe_remove (uri ^ suffix ^ ".xml.gz"))
+        (fun suffix ->
+          try
+           MatitaMisc.safe_remove (Http_getter.resolve (uri ^ suffix))
+          with Http_getter_types.Key_not_found _ -> ())
         [""; ".body"; ".types"])
     owned_uris;
   List.iter (fun statement ->