We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3244094 + b0abdac commit f97c577Copy full SHA for f97c577
scripts/versions.py
@@ -62,13 +62,9 @@ def main():
62
for url in [base_url.format(cat) for cat in categories]:
63
res = requests.get(url)
64
content = res.text
65
- versions = [
66
- Version.parse(
67
- v.strip('"').lstrip('docker-').rstrip('.tgz').rstrip('-x86_64')
68
- ) for v in re.findall(
69
- r'"docker-[0-9]+\.[0-9]+\.[0-9]+-?.*tgz"', content
70
- )
71
- ]
+ versions = [Version.parse(v) for v in re.findall(
+ r'"docker-([0-9]+\.[0-9]+\.[0-9]+)-?.*tgz"', content
+ )]
72
sorted_versions = sorted(
73
versions, reverse=True, key=operator.attrgetter('order')
74
)
0 commit comments