summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py5
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):