Skip to content

Commit

Permalink
Trim the universe before computing brute force heuristics.
Browse files Browse the repository at this point in the history
Remark: we don't trim it before as it is useful to have a full universe to better report error messages.
  • Loading branch information
samoht committed Feb 17, 2013
1 parent 248e2d7 commit 235db72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/solver/opamHeuristic.ml
Expand Up @@ -195,6 +195,12 @@ let resolve ?(verbose=true) universe request =
| Success u ->
log "resolve: sucess! final-universe=%s" (OpamCudf.string_of_universe u);

(* First, trim the universe *)
let universe = Algo.Depsolver.trim universe in
let u = match OpamCudf.get_final_universe universe request with
| Conflicts _ -> u
| Success u -> u in

(* Return the version of a given package in the initial
solution *)
let initial_version =
Expand Down

0 comments on commit 235db72

Please sign in to comment.