We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 320fd97 commit 6bb5e57Copy full SHA for 6bb5e57
1 file changed
acbs/fetch.py
@@ -86,8 +86,8 @@ def wget_download(url: str, full_path: str):
86
url_info = urlparse(url)
87
if os.path.exists(full_path) and not os.path.exists(flag_path):
88
return
89
- if url_info.hostname.endswith('sourceforge.net'): # type: ignore # url_info is a urlparse() returned ParseResult, url_info.path type is always string.
90
- if url_info.path.endswith('/download') or (url_info.hostname == 'downloads.sourceforge.net'):
+ if url_info.hostname == 'sourceforge.net':
+ if url_info.path.endswith('/download'):
91
url = url_info._replace(query='failedmirror=cyfuture.dl.sourceforge.net').geturl()
92
else:
93
url = url_info._replace(query='failedmirror=cyfuture.dl.sourceforge.net', path=url_info.path+'/download').geturl()
0 commit comments