From 5d4ba6dc474dfa7d572ed972efbe43b9eb358abe Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Thu, 31 Jan 2008 10:17:49 +0000 Subject: [PATCH] - fix equo conf loop issue git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1114 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- client/text_configuration.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/client/text_configuration.py b/client/text_configuration.py index 32c8d2ef4..6bc8cb8fa 100644 --- a/client/text_configuration.py +++ b/client/text_configuration.py @@ -66,8 +66,11 @@ def configurator(options): ''' def update(cmd = None): cache_status = False + docmd = False + if cmd != None: + docmd = True while 1: - print_info(yellow(" @@ ")+darkgreen("Scanning filesystem...")) + print_info(brown(" @@ ")+darkgreen("Scanning filesystem...")) scandata = Equo.FileUpdates.scanfs(dcache = cache_status) if (cache_status): for x in scandata: @@ -79,8 +82,10 @@ def update(cmd = None): break keys = scandata.keys() - if not cmd: + if not docmd: cmd = selfile() + else: + docmd = False try: cmd = int(cmd) except: @@ -311,7 +316,7 @@ def showdiff(fromfile,tofile): @description: prints information about config files that should be updated ''' def confinfo(): - print_info(yellow(" @@ ")+darkgreen("These are the files that would be updated:")) + print_info(brown(" @@ ")+darkgreen("These are the files that would be updated:")) data = Equo.FileUpdates.scanfs(dcache = False) counter = 0 for item in data: