diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-07-30 20:48:08 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-07-30 20:48:08 +0000 |
commit | 1b3a2390c537d19f08064d8bbdc52d5fd40a6b78 (patch) | |
tree | 5df703fe78ba40d24931a91badc3206d0795ed50 /pym/_emerge | |
parent | d531c0437521fd12db881cb60de8be2c84ba9363 (diff) | |
download | portage-1b3a2390c537d19f08064d8bbdc52d5fd40a6b78.tar.gz portage-1b3a2390c537d19f08064d8bbdc52d5fd40a6b78.tar.bz2 portage-1b3a2390c537d19f08064d8bbdc52d5fd40a6b78.zip |
Rename get_updated_config_files() to find_updated_config_files() and make
it an iterator of tuples.
svn path=/main/trunk/; revision=13859
Diffstat (limited to 'pym/_emerge')
-rw-r--r-- | pym/_emerge/actions.py | 5 |
1 files changed, 3 insertions, 2 deletions
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." |