File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -474,7 +474,9 @@ module Solver = struct
474474
475475 let compare_version a b =
476476 match a, b with
477- | RealImpl a , RealImpl b -> Ordering. of_int (OpamPackage. compare a.pkg b.pkg)
477+ | RealImpl a , RealImpl b ->
478+ (* CR rgrinberg: shouldn't we take our version preference into account here? *)
479+ Ordering. of_int (OpamPackage. compare a.pkg b.pkg)
478480 | RealImpl _ , _ -> Gt
479481 | _ , RealImpl _ -> Lt
480482 | VirtualImpl (ia , _ ), VirtualImpl (ib , _ ) -> Rank. compare ia ib
@@ -941,6 +943,7 @@ module Solver = struct
941943 If [t] selected a better version anyway then we don't need to report this rejection. *)
942944 let affected_selection t impl =
943945 match t.selected_impl with
946+ (* CR rgrinberg : take account version preference here? * )
944947 | Some selected when Input.Impl. compare_version selected impl = Gt -> false
945948 | _ -> true
946949 ;;
You can’t perform that action at this time.
0 commit comments