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
This commit is contained in:
(no author)
2008-01-27 10:52:18 +00:00
parent 8c70e93f60
commit cc985ea1f0

View File

@@ -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: