From fb2a098e31241b0ba45553686bd3e75c2b78b600 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Sat, 22 Dec 2007 17:23:15 +0000 Subject: [PATCH] strict check for scandata git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@929 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- client/equo | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/equo b/client/equo index 5f66343f5..ab2b4d900 100644 --- a/client/equo +++ b/client/equo @@ -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