if remote () then
resolve_remote uri
else
-
- (**** FIXME ******)
- if is_cic_uri uri && Pcre.pmatch ~pat:"\\.univ$" uri then
- begin
- prerr_endline "!!! E' in ~tassi !!!";
- "file:///home/tassi/mylib" ^
- (String.sub uri 4 ((String.length uri) - 4)) ^ ".xml.gz"
- end
- else
- (map_of_uri uri)#resolve uri
+ (map_of_uri uri)#resolve uri
let register ~uri ~url =
if remote () then
let dir =
"theory" ^ String.sub !dir_found 3
(String.length !dir_found - 3) ^ ".theory" in
-(*
-prerr_endline ("### " ^ uri ^ " ==> " ^ !dir_found ^ " ==> " ^ dir);
-*)
if not (List.mem dir !valid_candidates) then
valid_candidates := dir::!valid_candidates
end
then
(index_not_generated_yet := false ;
store_obj "index.theory"));
-(*
-prerr_endline ("@@@ " ^ String.concat " " !valid_candidates);
-prerr_endline ("!!! " ^ String.concat " " (List.map fst !candidates_found));
-*)
List.iter
(fun (uri,localpart) ->
if not (List.mem uri !valid_candidates) then