From 3d676a14cd0ab629d5b0fb89fbe12ec5b029fab1 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 29 Sep 2022 18:53:22 -0400 Subject: [PATCH] get: support fetching rc releases The directory for these does not contain the `rc` suffix. --- locallibs/get.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/locallibs/get.py b/locallibs/get.py index 5c6fd5f..4c486b8 100644 --- a/locallibs/get.py +++ b/locallibs/get.py @@ -63,8 +63,11 @@ def download(self): base_url = self.base_url.replace('macosx', 'macos') else: base_url = self.base_url + python_dir_version = self.python_version + if 'rc' in python_dir_version: + python_dir_version = python_dir_version[:python_dir_version.find('r')] url = base_url % ( - self.python_version, + python_dir_version, self.python_version, self.os_version, )