From 0be751ee9c4de8d1c558dfcba0023b5e9aa5af7b Mon Sep 17 00:00:00 2001 From: Raja Boujbel Date: Wed, 22 Apr 2020 20:52:10 +0200 Subject: [PATCH] sort opam fields --- opam2web.opam | 8 ++++---- src/o2wPackage.ml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/opam2web.opam b/opam2web.opam index e5c54ea..1cbf0af 100644 --- a/opam2web.opam +++ b/opam2web.opam @@ -13,10 +13,10 @@ depends: [ "cow" {= "2.3.0"} "js_of_ocaml" {>= "2.4.1" & < "3.3.0"} (* to update, and remove 3.3.0 restriction *) "js_of_ocaml-ppx" - "opam-core" {>= "2.0.0"} - "opam-format" {>= "2.0.0"} - "opam-state" {>= "2.0.0"} - "opam-client" {>= "2.0.0"} + "opam-core" {>= "2.1.0~beta"} + "opam-format" {>= "2.1.0~beta"} + "opam-state" {>= "2.1.0~beta"} + "opam-client" {>= "2.1.0~beta"} "cohttp-lwt-unix" "yojson" {>= "1.6.0"} ] diff --git a/src/o2wPackage.ml b/src/o2wPackage.ml index e5489ca..9f364db 100644 --- a/src/o2wPackage.ml +++ b/src/o2wPackage.ml @@ -168,6 +168,7 @@ let to_html ~prefix univ pkg = let {name; version} = pkg in let pkg = OpamPackage.create pkg.name pkg.version in let pkg_opam = OpamSwitchState.opam univ.st pkg in + let pkg_opam = OpamFileTools.sort_opam in let version_links = let version_set = OpamPackage.versions_of_name univ.st.packages pkg.name