Skip to content

Commit

Permalink
Fix interpretation of 'exists_if' in META files (ocaml#10564)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolás Ojeda Bär <n.oje.bar@gmail.com>
  • Loading branch information
nojb authored and emillon committed May 24, 2024
1 parent c28817c commit 8a3a032
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/changes/10564.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- fix interpretation of `exists_if` predicate in `META` files of installed
libraries containing more than one element. (#10564, @dbuenzli, @nojb)
2 changes: 1 addition & 1 deletion src/dune_findlib/package0.ml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ let exists t ~is_builtin =
let exists_if = Vars.get_words t.vars "exists_if" Ps.empty in
match exists_if with
| _ :: _ ->
Memo.List.for_all exists_if ~f:(fun fn -> Fs.file_exists (Path.relative t.dir fn))
Memo.List.exists exists_if ~f:(fun fn -> Fs.file_exists (Path.relative t.dir fn))
| [] ->
if not is_builtin
then Memo.return true
Expand Down

0 comments on commit 8a3a032

Please sign in to comment.