Merged from trunk 7563:7564
authorFabian Groffen <grobian@gentoo.org>
Sat, 4 Aug 2007 21:26:58 +0000 (21:26 -0000)
committerFabian Groffen <grobian@gentoo.org>
Sat, 4 Aug 2007 21:26:58 +0000 (21:26 -0000)
   | 7564    | Make config updates get counted correctly for bug #187741.   |
   | zmedico |                                                              |

svn path=/main/branches/prefix/; revision=7567

pym/emerge/__init__.py

index 5aeef801e87853d91da736a68efcd4e88084e16c..8b8938b92123c1afe1ffb441c9aa26b61f7c0f4b 100644 (file)
@@ -4394,7 +4394,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):