diff --git a/src/state/opamFormatUpgrade.ml b/src/state/opamFormatUpgrade.ml index 824d0a9a005..13b2804abca 100644 --- a/src/state/opamFormatUpgrade.ml +++ b/src/state/opamFormatUpgrade.ml @@ -1292,7 +1292,7 @@ let hard_upgrade_from_2_1_intermediates ?global_lock root = let opam_root_version = OpamFile.Config.raw_root_version config_f in match opam_root_version with | Some v when OpamVersion.compare v v2_0 <= 0 - || OpamVersion.compare v2_1_rc v <= 0 -> + || OpamVersion.compare v2_1 v <= 0 -> () (* do nothing, need to reraise parsing exception *) | _ -> log "Intermediate opam root detected%s, launch hard upgrade"