From 4ea51b55aeaab4b53ac60954773fd3aa56188fb3 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 2 Sep 2015 07:10:48 +0300 Subject: [PATCH] Update reference --- slpkg/repoenable.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/slpkg/repoenable.py b/slpkg/repoenable.py index f8ba51b6..2b4cd036 100644 --- a/slpkg/repoenable.py +++ b/slpkg/repoenable.py @@ -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),