From: Zac Medico Date: Sat, 4 Aug 2007 19:44:12 +0000 (-0000) Subject: Make config updates get counted correctly for bug #187741. X-Git-Tag: v2.2_pre1~904 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=02f1e9a143441e8eef2699e8f604f0a5c57ce1c1;p=portage.git Make config updates get counted correctly for bug #187741. svn path=/main/trunk/; revision=7564 --- diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index b4e2102c4..6c77bec6f 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -4393,7 +4393,10 @@ def chk_updated_cfg_files(target_root, config_protect): print >> sys.stderr, " " + bad("*")+ " error scanning '%s'" % x else: files = a[1].split('\0') - if files != ['']: + # split always produces an empty string as the last element + if files and not files[-1]: + del files[-1] + if files: procount += 1 print colorize("WARN", " * IMPORTANT:"), if stat.S_ISDIR(mymode):