projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed640f0
)
atomic_ofstream: suppress redundant open error
author
Zac Medico
<zmedico@gentoo.org>
Wed, 25 May 2011 04:52:40 +0000
(21:52 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 26 May 2011 06:12:38 +0000
(23:12 -0700)
pym/portage/util/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/util/__init__.py
b/pym/portage/util/__init__.py
index 43ff98e3020cc2d595bca2765bb9048ad298bdb4..7d071e42e3828186d9d96efd4c7161add4a7e4b3 100644
(file)
--- a/
pym/portage/util/__init__.py
+++ b/
pym/portage/util/__init__.py
@@
-1090,9
+1090,9
@@
class atomic_ofstream(ObjectProxy):
except IOError as e:
if canonical_path == filename:
raise
- writemsg(_("!!! Failed to open file: '%s'\n") % tmp_name,
- noiselevel=-1)
- writemsg("!!! %s\n" % str(e), noiselevel=-1)
+ # Ignore this error, since it's irrelevant
+ # and the below open call will produce a
+ # new error if necessary.
object.__setattr__(self, '_real_name', filename)
tmp_name = "%s.%i" % (filename, os.getpid())