[Pkg-ocaml-maint-commits] [SCM] oasis2debian project branch, master, updated. 94ae27000298101188a629fbcc6b28420021fe10

Sylvain Le Gall gildor at debian.org
Sat Nov 20 00:59:00 UTC 2010


The following commit has been merged in the master branch:
commit ede4c9910a1996614f071b9e027569ff94cc33bd
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Fri Nov 19 23:16:39 2010 +0100

    Transform runtime into devel packages for build depends

diff --git a/src/BuildDepends.ml b/src/BuildDepends.ml
index 9bfecb7..2c95614 100644
--- a/src/BuildDepends.ml
+++ b/src/BuildDepends.ml
@@ -185,8 +185,15 @@ let get ~ctxt pkg =
         if dev_pkg then
           begin
             let lst' = 
-              List.filter
-                (fun nm -> String.ends_with nm "-dev")
+              List.fold_left
+                (fun acc nm -> 
+                   if Pcre.pmatch ~pat:"^lib.*-ocaml$" nm then
+                     (nm^"-dev") :: acc
+                   else if String.ends_with nm "-dev" then
+                     nm :: acc
+                   else 
+                     acc)
+                []
                 lst
             in
               (* Some package don't adhere to the -dev convention (e.g. camlp4),

-- 
oasis2debian project



More information about the Pkg-ocaml-maint-commits mailing list