fpco -> commercialhaskell

This commit is contained in:
Yuxiang Zhang 2020-02-24 20:59:06 +08:00 committed by GitHub
parent 3eec05fe4c
commit 94f3b4c1cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ class StackageSession(object):
def load_stack_setup(self): def load_stack_setup(self):
d = yaml.load( d = yaml.load(
requests requests
.get('https://raw.githubusercontent.com/fpco/stackage-content/master/stack/stack-setup-2.yaml') .get('https://raw.githubusercontent.com/commercialhaskell/stackage-content/master/stack/stack-setup-2.yaml')
.content .content
) )
for platform in d['ghc']: for platform in d['ghc']:
@ -56,7 +56,7 @@ class StackageSession(object):
print(os) print(os)
d['msys2'][os]['url'] = d['msys2'][os]['url'].replace( d['msys2'][os]['url'] = d['msys2'][os]['url'].replace(
'https://github.com/fpco/stackage-content/releases/download/', 'https://github.com/fpco/stackage-content/releases/download/',
'https://mirrors.tuna.tsinghua.edu.cn/github-release/fpco/stackage-content/') 'https://mirrors.tuna.tsinghua.edu.cn/github-release/commercialhaskell/stackage-content/')
for i in ['portable-git', 'stack', 'ghcjs']: for i in ['portable-git', 'stack', 'ghcjs']:
del d[i] del d[i]
@ -70,7 +70,7 @@ class StackageSession(object):
args = ['git', '-C', self._base_path / channel, 'pull'] args = ['git', '-C', self._base_path / channel, 'pull']
else: else:
args = ['git', '-C', self._base_path, 'clone', '--depth', '1', args = ['git', '-C', self._base_path, 'clone', '--depth', '1',
'https://github.com/fpco/{}.git'.format(channel)] 'https://github.com/commercialhaskell/{}.git'.format(channel)]
subprocess.run(args, check=True) subprocess.run(args, check=True)
print('Loaded {}'.format(channel), flush=True) print('Loaded {}'.format(channel), flush=True)