Make config updates get counted correctly for bug #187741.
authorZac Medico <zmedico@gentoo.org>
Sat, 4 Aug 2007 19:44:12 +0000 (19:44 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 4 Aug 2007 19:44:12 +0000 (19:44 -0000)
svn path=/main/trunk/; revision=7564

pym/emerge/__init__.py

index b4e2102c41ad1c8530af897ba0269082df530d31..6c77bec6f9591c842eb527ee57f8720cf0ca7395 100644 (file)
@@ -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):