summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/vartree.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index d508d46c9..4ca0b9b1d 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -64,9 +64,13 @@ class PreservedLibsRegistry(object):
""" Store the registry data to file. No need to call this if autocommit
was enabled.
"""
- f = atomic_ofstream(self._filename)
- cPickle.dump(self._data, f)
- f.close()
+ try:
+ f = atomic_ofstream(self._filename)
+ cPickle.dump(self._data, f)
+ f.close()
+ except EnvironmentError, e:
+ if e.errno != PermissionDenied.errno:
+ writemsg("!!! %s %s\n" % (e, self._filename), noiselevel=-1)
def register(self, cpv, slot, counter, paths):
""" Register new objects in the registry. If there is a record with the