strict check for scandata

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@929 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2007-12-22 17:23:15 +00:00
parent 88f7c1d645
commit fb2a098e31
+5 -4
View File
@@ -206,10 +206,11 @@ def loadconfcache():
if not etpUi['quiet']: print_info(red(" @@ ")+blue("Caching not run."))
return
if not etpUi['quiet']: print_info(red(" @@ ")+blue("Caching complete."))
if len(scandata) > 0:
if not etpUi['quiet']:
print_warning(darkgreen("There are "+str(len(scandata))+" configuration file(s) that need(s) to be updated."))
print_warning(red("Please run: ")+bold("equo conf update"))
if scandata: # can be None
if len(scandata) > 0: # strict check
if not etpUi['quiet']:
print_warning(darkgreen("There are "+str(len(scandata))+" configuration file(s) that need(s) to be updated."))
print_warning(red("Please run: ")+bold("equo conf update"))
try:
rc = 0