- fix equo conf loop issue

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1114 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2008-01-31 10:17:49 +00:00
parent 043f871c2c
commit 5d4ba6dc47
+8 -3
View File
@@ -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: