Commit b578106 1 parent 8cf4540 commit b578106 Copy full SHA for b578106
File tree 1 file changed +3
-14
lines changed
1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -113,27 +113,16 @@ let compute_upgrade_t
113
113
| Some nv -> not (OpamPackage.Set. mem nv (Lazy. force t.available_packages)))
114
114
atoms
115
115
in
116
- let criteria = if to_install = [] && all then `Upgrade else `Default in
117
- if all then
118
- names,
119
- OpamSolution. resolve t Upgrade
120
- ~requested: packages
121
- ~reinstall: (Lazy. force t.reinstall)
122
- (OpamSolver. request
123
- ~install: to_install
124
- ~upgrade: to_upgrade
125
- ~deprequest: (OpamFormula. to_atom_formula formula)
126
- ~all: []
127
- ~criteria () )
128
- else
129
116
names,
130
117
OpamSolution. resolve t Upgrade
131
118
~requested: packages
119
+ ?reinstall:(if all then Some (Lazy. force t.reinstall) else None )
132
120
(OpamSolver. request
133
121
~install: to_install
134
122
~upgrade: to_upgrade
135
123
~deprequest: (OpamFormula. to_atom_formula formula)
136
- ~criteria
124
+ ?all:(if all then Some [] else None )
125
+ ~criteria: (if to_install = [] && all then `Upgrade else `Default )
137
126
() )
138
127
139
128
let print_requested requested formula =
You can’t perform that action at this time.
0 commit comments