Commits

camlspotter  committed bc272ef

spotlib 2.4.0

  • Participants
  • Parent commits c9ff307

Comments (0)

Files changed (1)

File spotinstall.ml

             | (`Out, `Read line) ->
                 begin match !ocamlfind_path with
                 | Some _ -> failwith "ocamlfind printconf destdir prints more than one line"
-                | None -> ocamlfind_path := Some (String.chop_newline line)
+                | None -> ocamlfind_path := Some (String.chop_eols line)
                 end
             | _ -> ())
         |> C.must_exit_with 0
             | (`Out, `Read line) ->
                 begin match !result with
                 | Some _ -> failwith "ocamlfind query package prints more than one line"
-                | None -> result := Some (String.chop_newline line)
+                | None -> result := Some (String.chop_eols line)
                 end
             | _ -> ())
         |> C.must_exit_with 0
             | (`Out, `Read line) ->
                 begin match !ocaml_where with
                 | Some _ -> failwith "ocamlc -where prints more than one line"
-                | None -> ocaml_where := Some (String.chop_newline line)
+                | None -> ocaml_where := Some (String.chop_eols line)
                 end
             | _ -> ())
         |> C.must_exit_with 0