From c1dfb763206c3e548b26d1e5f2128c6938a5df14 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Mon, 12 Feb 2001 21:29:36 +0000 Subject: [PATCH] Removed rebuilding of urls_of_uris.db on update user request. This feature now is handled by http_getter. Also modified file 'http_getter.pl.in' from module 'http_getter'. --- helm/interface/getter.ml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/helm/interface/getter.ml b/helm/interface/getter.ml index 241dd4443..800feddd5 100644 --- a/helm/interface/getter.ml +++ b/helm/interface/getter.ml @@ -34,15 +34,21 @@ exception ErrorGetting of string;; +(* FEATURE MOVED TO HTTP_GETTER, Zack module OrderedStrings = struct type t = string let compare (s1 : t) (s2 : t) = compare s1 s2 end ;; +*) + +(* FEATURE MOVED TO HTTP_GETTER, Zack module MapOfStrings = Map.Make(OrderedStrings);; +*) +(* FEATURE MOVED TO HTTP_GETTER, Zack let read_index url = let module C = Configuration in if Sys.command ("helm_wget " ^ C.tmp_dir ^ " " ^ url ^ "/\"" ^ @@ -67,7 +73,9 @@ let read_index url = Sys.remove tmpfilename ; !uris ;; +*) +(* FEATURE MOVED TO HTTP_GETTER, Zack (* mk_urls_of_uris list_of_servers_base_urls *) let rec mk_urls_of_uris = function @@ -85,9 +93,11 @@ let rec mk_urls_of_uris = (fun (uri,comp) m -> MapOfStrings.add uri (url_of_uri (uri,comp)) m) uris map ;; +*) exception PerlGetterNotResponding;; +(* FEATURE MOVED TO HTTP_GETTER, Zack let update () = let module C = Configuration in let fd = open_in C.servers_file in @@ -110,6 +120,14 @@ let update () = then raise PerlGetterNotResponding ; ;; +*) + +let update () = +(* deliver update request to http_getter *) + if Sys.command ("wget -O /dev/null http://localhost:8081/update") <> 0 + then + raise PerlGetterNotResponding ; +;; (* url_of_uri : uri -> url *) let url_of_uri uri = -- 2.39.2