Make config updates get counted correctly for bug #187741. (branches/2.1.2 r7564)
authorZac Medico <zmedico@gentoo.org>
Wed, 15 Aug 2007 20:29:44 +0000 (20:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 15 Aug 2007 20:29:44 +0000 (20:29 -0000)
svn path=/main/branches/2.1.2.9/; revision=7613

bin/emerge

index 7433af9fb8c43e6750bb363ee98d01824f8e0b5e..e495ea4e1ecc0d5ac40709674f6271dc109a649f 100755 (executable)
@@ -3846,7 +3846,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):