From cc985ea1f0a1caafb0f8ec86f58fd5eb01af2c6c Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Sun, 27 Jan 2008 10:52:18 +0000 Subject: [PATCH] update update() to allow cmd to be passed as parameter git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1099 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- client/text_configuration.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/text_configuration.py b/client/text_configuration.py index 595b10e5d..32c8d2ef4 100644 --- a/client/text_configuration.py +++ b/client/text_configuration.py @@ -64,7 +64,7 @@ def configurator(options): @description: scan for files that need to be merged @output: dictionary using filename as key ''' -def update(): +def update(cmd = None): cache_status = False while 1: print_info(yellow(" @@ ")+darkgreen("Scanning filesystem...")) @@ -79,7 +79,8 @@ def update(): break keys = scandata.keys() - cmd = selfile() + if not cmd: + cmd = selfile() try: cmd = int(cmd) except: