Skip to content

Commit

Permalink
fix the .opam files
Browse files Browse the repository at this point in the history
- the field "remove" is produced now
- provide some accessing function
  • Loading branch information
tuong committed Jun 22, 2012
1 parent f7081b1 commit 28e9db7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/file.ml
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ module OPAM = struct

let with_depends t depends = { t with depends }
let with_build t build = { t with build }
let with_remove t remove = { t with remove }

module D = Debian.Packages

Expand Down Expand Up @@ -448,6 +449,7 @@ module OPAM = struct
Variable (s_maintainer, String t.maintainer);
Variable (s_substs, make_list (Basename.to_string |> make_string) t.substs);
Variable (s_build, make_list (make_list make_string) t.build);
Variable (s_remove, make_list make_string t.remove);
Variable (s_depends, make_cnf_formula t.depends);
Variable (s_depopts, make_cnf_formula t.depopts);
Variable (s_conflicts, make_and_formula t.conflicts);
Expand Down
6 changes: 6 additions & 0 deletions src/file.mli
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,14 @@ module OPAM: sig
(** deptopts (optional dependencies) string *)
val s_depopts: string

(** Construct as [depends] *)
val with_depends : t -> Debian.Format822.vpkgformula -> t

(** Construct as [build] *)
val with_build: t -> string list list -> t

(** Construct as [remove] *)
val with_remove : t -> string list -> t
end

(** Package descriptions: [$opam/descr/] *)
Expand Down

0 comments on commit 28e9db7

Please sign in to comment.