Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
agetpkg
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
archlinux
agetpkg
Commits
de6dd4a9
Commit
de6dd4a9
authored
Oct 16, 2015
by
Seblu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align package names in selection
parent
0b44c5a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
agetpkg
agetpkg
+2
-1
No files found.
agetpkg
View file @
de6dd4a9
...
...
@@ -282,8 +282,9 @@ def select_packages(packages):
else
:
# 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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment