summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge5
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):