summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-21 18:38:45 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-21 18:38:45 -0800
commitf11ed8dc9f35d8d211173fd6f9a24091ed86d36b (patch)
tree63f53f81c614677774a2af79217a8b4a7c2e1ae8 /pym
parent435c74008fff2c76437cbb59d7b6ad0f68dabcde (diff)
downloadportage-f11ed8dc9f35d8d211173fd6f9a24091ed86d36b.tar.gz
portage-f11ed8dc9f35d8d211173fd6f9a24091ed86d36b.tar.bz2
portage-f11ed8dc9f35d8d211173fd6f9a24091ed86d36b.zip
chk_updated_cfg_files: fix plurality of message
This will fix bug #355803.
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/actions.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 08a92d677..980ad7563 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -2944,9 +2944,15 @@ def chk_updated_cfg_files(eroot, config_protect):
for x in result:
print("\n"+colorize("WARN", " * IMPORTANT:"), end=' ')
if not x[1]: # it's a protected file
- print("config file '%s' needs updating." % x[0])
+ writemsg_level("config file '%s' needs updating.\n" % x[0],
+ level=logging.INFO, noiselevel=-1)
else: # it's a protected dir
- print("%d config files in '%s' need updating." % (len(x[1]), x[0]))
+ if len(x[1]) == 1:
+ writemsg_level("config file '%s' needs updating.\n" % x[1][0],
+ level=logging.INFO, noiselevel=-1)
+ else:
+ writemsg_level("%d config files in '%s' need updating.\n" % \
+ (len(x[1]), x[0]), level=logging.INFO, noiselevel=-1)
if result:
print(" "+yellow("*")+" See the "+colorize("INFORM","CONFIGURATION FILES")\