summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rwxr-xr-xinstall7
1 files changed, 6 insertions, 1 deletions
diff --git a/install b/install
index 342386f..55c40e7 100755
--- a/install
+++ b/install
@@ -516,7 +516,12 @@ def valid_mirror(mirror):
def configure_mirror():
global mirror
- items = map(lambda x: '{url} ({info})'.format(url=x[0], info=x[1]), mirrors)
+ global mirrors
+ maxlen = 0
+ for m in mirrors:
+ if len(m[0]) > maxlen:
+ maxlen = len(m[0])
+ items = map(lambda x: '{url: <{0}} ({info})'.format(maxlen, url=x[0], info=x[1]), mirrors)
items.append(('Enter another mirror', None))
mirror = None
while not mirror: