summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage_util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage_util.py b/pym/portage_util.py
index bd35e9a10..46a7d1052 100644
--- a/pym/portage_util.py
+++ b/pym/portage_util.py
@@ -627,6 +627,8 @@ class atomic_ofstream(file):
super(atomic_ofstream, self).__init__(tmp_name, mode=mode, **kargs)
return
except (OSError, IOError), e:
+ if canonical_path == filename:
+ raise
writemsg("!!! Failed to open file: '%s'\n" % tmp_name)
writemsg("!!! %s\n" % str(e))