From dab2bcfec9c3e6970ea0cdcee412314cc3a57f50 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 2 Sep 2015 04:59:36 +0300 Subject: [PATCH] Update reference --- slpkg/repoenable.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/slpkg/repoenable.py b/slpkg/repoenable.py index 71cabf79..f8ba51b6 100644 --- a/slpkg/repoenable.py +++ b/slpkg/repoenable.py @@ -25,6 +25,7 @@ import os from slpkg.utils import Utils +from slpkg.messages import Msg from slpkg.dialog_box import DialogUtil from slpkg.__metadata__ import MetaData as _meta_ @@ -35,6 +36,7 @@ class RepoEnable(object): """ def __init__(self): self.meta = _meta_ + self.msg = Msg() self.tag = "[REPOSITORIES]" self.tag_line = False self.repositories_conf = "repositories.conf" @@ -124,6 +126,11 @@ Keys: SPACE select or deselect the highlighted repositories, def reference(self): """Reference enable repositories """ - print("Enabled repositories:\n {0}".format(", ".join(self.selected))) - print("\nView more information with commands:\n" - " '# slpkg repo-list' and '# slpkg repo-info'\n") + self.msg.template(78) + print("| Enabled repositories:") + self.msg.template(78) + print("| {0}".format(", ".join(self.selected))) + self.msg.template(78) + print("{0}Total {1} repositories enabled.{2}\n".format( + self.meta.color["GREY"], len(self.selected), + self.meta.color["ENDC"]))