diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-06-25 09:54:19 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-06-25 09:54:19 +0000 |
commit | 1516d6e4aa10da1b98d8ea899358632ca55f3efc (patch) | |
tree | 5f488aba2eec79d26f9fdeb5bf3e7f9ad83df4bf | |
parent | bc094693b719ec3e7f45e19fccda192df8d356f6 (diff) | |
download | portage-1516d6e4aa10da1b98d8ea899358632ca55f3efc.tar.gz portage-1516d6e4aa10da1b98d8ea899358632ca55f3efc.tar.bz2 portage-1516d6e4aa10da1b98d8ea899358632ca55f3efc.zip |
Print a message to stderr if an error occurs when updating a config file.
svn path=/main/trunk/; revision=3654
-rw-r--r-- | pym/portage.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py index d78d72f2b..710b098eb 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6919,7 +6919,10 @@ def update_config_files(config_root, protect, protect_mask, update_iter): updating_file = new_protect_filename(updating_file)[0] try: write_atomic(updating_file, "".join(file_contents[x])) - except IOError: + except (OSError, IOError), e: + writemsg("\n!!! %s\n" % str(e), noiselevel=-1) + writemsg("!!! An error occured while updating a config file:" + \ + " '%s'\n" % updating_file, noiselevel=-1) continue def global_updates(mysettings, trees, prev_mtimes): |