Skip to content

Commit

Permalink
Fix the sort order for updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mcg1969 committed May 6, 2016
1 parent 33e1e45 commit 91b0206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda/resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,8 @@ def generate_version_metrics(self, C, specs):
if targets:
v1 = [(self.version_key(p), p) for p in targets]
tver = max(v1)
v2 = [p for p in pkgs if p > tver]
v3 = list(reversed([p for p in pkgs if p <= tver and p not in v1]))
v2 = list(reversed([p for p in pkgs if p > tver]))
v3 = [p for p in pkgs if p <= tver and p not in v1]
pkgs = v1 + v2 + v3
pkey = None
for nkey, npkg in pkgs:
Expand Down

0 comments on commit 91b0206

Please sign in to comment.