diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-08-04 19:45:18 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-08-04 19:45:18 +0000 |
commit | 49e47479d907de6a495d40394c85cb3f11706205 (patch) | |
tree | e363566238b027b4558880e7ecb38cc3befa47cb /bin/emerge | |
parent | a4a271de933b80a0f174f7149fcdead55d1f95b6 (diff) | |
download | portage-49e47479d907de6a495d40394c85cb3f11706205.tar.gz portage-49e47479d907de6a495d40394c85cb3f11706205.tar.bz2 portage-49e47479d907de6a495d40394c85cb3f11706205.zip |
Make config updates get counted correctly for bug #187741. (trunk r7564)
svn path=/main/branches/2.1.2/; revision=7565
Diffstat (limited to 'bin/emerge')
-rwxr-xr-x | bin/emerge | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge index 34f49296b..1dcec33ca 100755 --- a/bin/emerge +++ b/bin/emerge @@ -4380,7 +4380,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): |