Commit de6dd4a9 authored by Seblu's avatar Seblu

Align package names in selection

parent 0b44c5a1
......@@ -282,8 +282,9 @@ def select_packages(packages):
# display a list of packages to select
index = dict(enumerate(packages))
pad = len("%d" % max(index.keys()))
for i, pkg in index.items():
print(i, pkg)
print("{:{pad}} {}".format(i, pkg, pad=pad))
selection = ""
while not match("^(\d+ ){0,}\d+$", selection):
selection = input("Select packages: ").strip()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment