Skip to content

Commit

Permalink
add target to specs from historic specs
Browse files Browse the repository at this point in the history
Historic specs should not be considered with the same priority as
explicit specs. By adding a target to historic specs they are still
included as constrains but not optmized at the same level as explicit
specs.
  • Loading branch information
jjhelmus committed Jul 10, 2019
1 parent 6f02608 commit 97cfdba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conda/core/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,9 @@ def _add_specs(self, ssc):
installed_pool):
ssc.specs_map[pkg_name] = target_prec.to_match_spec()
elif pkg_name in ssc.specs_from_history_map:
ssc.specs_map[pkg_name] = ssc.specs_from_history_map[pkg_name]
ssc.specs_map[pkg_name] = MatchSpec(
ssc.specs_from_history_map[pkg_name],
target=target_prec.dist_str())
else:
ssc.specs_map[pkg_name] = MatchSpec(pkg_name, target=target_prec.dist_str())

Expand Down

0 comments on commit 97cfdba

Please sign in to comment.