diff options
-rw-r--r-- | pym/portage_util.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage_util.py b/pym/portage_util.py index aa84fa74e..ae5312175 100644 --- a/pym/portage_util.py +++ b/pym/portage_util.py @@ -628,6 +628,11 @@ class atomic_ofstream(file): pass except FileNotFound: pass + except OSError, oe: # from the above os.stat call + if oe.errno in (errno.ENOENT, errno.EPERM): + pass + else: + raise os.rename(self.name, self._real_name) finally: # Make sure we cleanup the temp file |