mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-31 10:26:39 +01:00
Update reference
This commit is contained in:
parent
d672220a52
commit
4ea51b55ae
1 changed files with 7 additions and 1 deletions
|
@ -126,10 +126,16 @@ Keys: SPACE select or deselect the highlighted repositories,
|
|||
def reference(self):
|
||||
"""Reference enable repositories
|
||||
"""
|
||||
total_enabled = ", ".join(self.selected)
|
||||
if len(total_enabled) < 1:
|
||||
total_enabled = ("{0}Are you crazy? This is a package "
|
||||
"manager for packages :p{1}".format(
|
||||
self.meta.color["RED"],
|
||||
self.meta.color["ENDC"]))
|
||||
self.msg.template(78)
|
||||
print("| Enabled repositories:")
|
||||
self.msg.template(78)
|
||||
print("| {0}".format(", ".join(self.selected)))
|
||||
print("| {0}".format(total_enabled))
|
||||
self.msg.template(78)
|
||||
print("{0}Total {1} repositories enabled.{2}\n".format(
|
||||
self.meta.color["GREY"], len(self.selected),
|
||||
|
|
Loading…
Reference in a new issue