Skip to content

Commit

Permalink
mismatching extra-files: sort list before comparing them (ocaml#3744)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Mar 28, 2019
1 parent f8bff70 commit ed9124b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/state/opamFileTools.ml
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,8 @@ let add_aux_files ?dir ~files_subdir_hashes opam =
(OpamFilename.Dir.to_string dir);
opam
| Some oef, Some ef ->
if oef <> ef then
let sort = List.sort (fun (b, _) (b', _) -> compare b b') in
if sort oef <> sort ef then
log "Mismatching extra-files at %s"
(OpamFilename.Dir.to_string dir);
opam
Expand Down

0 comments on commit ed9124b

Please sign in to comment.