From 1b3a2390c537d19f08064d8bbdc52d5fd40a6b78 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Jul 2009 20:48:08 +0000 Subject: Rename get_updated_config_files() to find_updated_config_files() and make it an iterator of tuples. svn path=/main/trunk/; revision=13859 --- pym/_emerge/actions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pym/_emerge') diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index affa6bc49..94ec37e8a 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2610,7 +2610,8 @@ def load_emerge_config(trees=None): return settings, trees, mtimedb def chk_updated_cfg_files(target_root, config_protect): - result = portage.util.get_updated_config_files(target_root, config_protect) + result = list( + portage.util.find_updated_config_files(target_root, config_protect)) for x in result: print "\n"+colorize("WARN", " * IMPORTANT:"), @@ -2619,7 +2620,7 @@ def chk_updated_cfg_files(target_root, config_protect): else: # it's a protected dir print "%d config files in '%s' need updating." % (len(x[1]), x[0]) - if result != []: + if result: print " "+yellow("*")+" See the "+colorize("INFORM","CONFIGURATION FILES")\ + " section of the " + bold("emerge") print " "+yellow("*")+" man page to learn how to update config files." -- cgit v1.2.3-1-g7c22