Merge "Fix the pypi element for multiple mirror URLs"
This commit is contained in:
commit
24e620ae6d
@ -57,8 +57,10 @@ def main():
|
|||||||
output.write('trusted-host = %s\n' % (urlparse(indices[0]).hostname,))
|
output.write('trusted-host = %s\n' % (urlparse(indices[0]).hostname,))
|
||||||
if retries is not None:
|
if retries is not None:
|
||||||
output.write('retries = %s\n' % retries)
|
output.write('retries = %s\n' % retries)
|
||||||
for index in indices[1:]:
|
if len(indices) > 1:
|
||||||
output.write('extra-index-url = %s\n' % (index,))
|
output.write('extra-index-url =\n')
|
||||||
|
for index in indices[1:]:
|
||||||
|
output.write(' %s\n' % (index,))
|
||||||
with open(home + '/.pydistutils.cfg', 'wt') as output:
|
with open(home + '/.pydistutils.cfg', 'wt') as output:
|
||||||
output.write('[easy_install]\n')
|
output.write('[easy_install]\n')
|
||||||
output.write('index_url = %s\n' % (easy_index,))
|
output.write('index_url = %s\n' % (easy_index,))
|
||||||
|
Loading…
Reference in New Issue
Block a user