File tree 1 file changed +4
-2
lines changed
osia/installer/downloader
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 35
35
BUILD_ROOT = "https://openshift-release-artifacts.svc.ci.openshift.org/"
36
36
PREVIEW_ROOT = "http://mirror.openshift.com/pub/openshift-v4/clients/ocp-dev-preview/"
37
37
38
- VERSION_RE = re .compile (r"^openshift-install-(?P<platform>\w+)(?P<architecture>-\w+)?-(?P<version>\d+.*)\.tar\.gz" )
38
+ VERSION_RE = re .compile (r"^openshift-install-(?P<platform>\w+)"
39
+ r"(?P<architecture>-\w+)?-(?P<version>\d+.*)\.tar\.gz" )
39
40
EXTRACTION_RE = re .compile (r'.*Extracting tools for .*, may take up to a minute.*' )
40
41
41
42
@@ -61,7 +62,8 @@ def get_url(directory: str) -> Tuple[Optional[str], Optional[str]]:
61
62
for k in links :
62
63
match = VERSION_RE .match (k .get ('href' ))
63
64
if match and match .group ('platform' ) == os_name :
64
- if (arch and not match .group ('architecture' )) or (not arch and match .group ('architecture' )):
65
+ if (arch and not match .group ('architecture' )) \
66
+ or (not arch and match .group ('architecture' )):
65
67
continue
66
68
installer = lst .url + k .get ('href' )
67
69
version = match .group ('version' )
You can’t perform that action at this time.
0 commit comments