mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
stackage: update 7z url
Caused by 19cf233240
Ref to https://github.com/tuna/issues/issues/1595
This commit is contained in:
parent
5e2ab0566a
commit
5cb8c8056b
@ -28,8 +28,6 @@ def delete_line_with_gbpdistro(s: str) -> str:
|
||||
REPOS = [
|
||||
# owner/repo, tree, tree, tree, blob
|
||||
## for stackage
|
||||
["fpco/minghc", "master", "bin", "7z.exe"],
|
||||
["fpco/minghc", "master", "bin", "7z.dll"],
|
||||
["fpco/stackage-content", "master", "stack", "global-hints.yaml"],
|
||||
## for rosdep
|
||||
{ "path": ["ros/rosdistro", "master", "rosdep", "sources.list.d", "20-default.list"], "filter": [ raw_to_mirror, delete_line_with_gbpdistro ] },
|
||||
|
@ -65,10 +65,14 @@ class StackageSession(object):
|
||||
'https://mirrors.tuna.tsinghua.edu.cn/github-release/commercialhaskell/stackage-content/')
|
||||
|
||||
if 'sevenzexe-info' in d:
|
||||
d['sevenzexe-info']['url'] = 'https://mirrors.tuna.tsinghua.edu.cn/github-raw/fpco/minghc/master/bin/7z.exe'
|
||||
d['sevenzexe-info']['url'] = d['sevenzexe-info']['url'].replace(
|
||||
'https://github.com/commercialhaskell/stackage-content/releases/download/',
|
||||
'https://mirrors.tuna.tsinghua.edu.cn/github-release/commercialhaskell/stackage-content/')
|
||||
|
||||
if 'sevenzdll-info' in d:
|
||||
d['sevenzdll-info']['url'] = 'https://mirrors.tuna.tsinghua.edu.cn/github-raw/fpco/minghc/master/bin/7z.dll'
|
||||
d['sevenzdll-info']['url'] = d['sevenzdll-info']['url'].replace(
|
||||
'https://github.com/commercialhaskell/stackage-content/releases/download/',
|
||||
'https://mirrors.tuna.tsinghua.edu.cn/github-release/commercialhaskell/stackage-content/')
|
||||
|
||||
for i in ['portable-git', 'stack', 'ghcjs']:
|
||||
del d[i]
|
||||
|
Loading…
x
Reference in New Issue
Block a user