(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 ->
let clean_baseuris buris =
let buris = List.map HGM.strip_trailing_slash buris in
-(* List.iter prerr_endline buris;*)
+ (* List.iter prerr_endline buris; *)
let l = fix [] buris in
let l = MatitaMisc.list_uniq (List.fast_sort Pervasives.compare l) in
let l = List.map UriManager.uri_of_string l in
+ (* List.iter (fun u -> prerr_endline (UriManager.string_of_uri u)) l; *)
List.iter MatitaSync.remove l
let is_empty buri = HG.ls (HGM.strip_trailing_slash buri ^ "/") = []