[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ocaml 3.04-8 broken ?



I just look to the ocaml 3.04-8 package, and there is problem :
I have an exception raised (Invalid_argument "String.get") when
installing ocaml-bas, and when I run ocaml-ldconf.

here is a patch that seem to solve the problem :

--- patch ---
*** ocaml-3.04-orig/debian/ocaml-ldconf.ml	Tue Feb 19 19:06:38 2002
--- ocaml-3.04/debian/ocaml-ldconf.ml	Tue Feb 19 18:37:15 2002
*************** let action_update () =
*** 264,270 ****
    let rec f fd c dpkg_list =
      let f = f fd (c+1) in try
      let l = input_line fd in
!     if l.[0] = '#' then f dpkg_list
      else match parse_line l with
        | dir, Add_action -> f (dir::dpkg_list)
        | _, _ ->
--- 264,270 ----
    let rec f fd c dpkg_list =
      let f = f fd (c+1) in try
      let l = input_line fd in
!     if (String.length l) = 0 || l.[0] = '#' then f dpkg_list
      else match parse_line l with
        | dir, Add_action -> f (dir::dpkg_list)
        | _, _ ->
--- end patch ---

the last bug ?
-- 
Rémi Vanicat
vanicat@labri.u-bordeaux.fr
http://dept-info.labri.u-bordeaux.fr/~vanicat



Reply to: