Skip to content

Commit 670a272

Browse files
committed
Sort versions in descending mode so by default we get the latest version
1 parent 84a1827 commit 670a272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/Alien-PIP

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def available_versions(prog):
5050
url = "https://pypi.python.org/pypi/%s/json" %prog
5151
data = load_json(urlopen(Request(url)))
5252
versions = list(data["releases"].keys())
53-
versions.sort(key=StrictVersion)
53+
versions.sort(key=StrictVersion, reverse=True)
5454
return versions
5555
except Exception as e:
5656
return []

0 commit comments

Comments
 (0)