scripts/build-many-glibcs.py: Use https:// for sourceware.org Git clones

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer 2022-09-05 15:51:05 +02:00
parent cd84e30c04
commit 0784e7913f

View File

@ -858,7 +858,7 @@ class Context(object):
"""Check out the given version of the given component from version """Check out the given version of the given component from version
control. Return a revision identifier.""" control. Return a revision identifier."""
if component == 'binutils': if component == 'binutils':
git_url = 'git://sourceware.org/git/binutils-gdb.git' git_url = 'https://sourceware.org/git/binutils-gdb.git'
if version == 'mainline': if version == 'mainline':
git_branch = 'master' git_branch = 'master'
else: else:
@ -872,7 +872,7 @@ class Context(object):
branch = 'releases/gcc-%s' % version branch = 'releases/gcc-%s' % version
return self.gcc_checkout(branch, update) return self.gcc_checkout(branch, update)
elif component == 'glibc': elif component == 'glibc':
git_url = 'git://sourceware.org/git/glibc.git' git_url = 'https://sourceware.org/git/glibc.git'
if version == 'mainline': if version == 'mainline':
git_branch = 'master' git_branch = 'master'
else: else:
@ -961,7 +961,7 @@ class Context(object):
shutil.rmtree(self.component_srcdir('gcc')) shutil.rmtree(self.component_srcdir('gcc'))
update = False update = False
if not update: if not update:
self.git_checkout('gcc', 'git://gcc.gnu.org/git/gcc.git', self.git_checkout('gcc', 'https://gcc.gnu.org/git/gcc.git',
branch, update) branch, update)
subprocess.run(['contrib/gcc_update', '--silent'], subprocess.run(['contrib/gcc_update', '--silent'],
cwd=self.component_srcdir('gcc'), check=True) cwd=self.component_srcdir('gcc'), check=True)