projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6550a25
)
Fix PreservedLibsRegistry.store() so that it only rewrites the data file when
author
Zac Medico
<zmedico@gentoo.org>
Sun, 5 Oct 2008 04:12:32 +0000
(
04:12
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 5 Oct 2008 04:12:32 +0000
(
04:12
-0000)
something has changed.
svn path=/main/trunk/; revision=11626
pym/portage/dbapi/vartree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/vartree.py
b/pym/portage/dbapi/vartree.py
index becbacc175db345f653e00ef4756c7fe0969c31f..b66bdb1144b65d81ab9c138339697e28f0412e22 100644
(file)
--- a/
pym/portage/dbapi/vartree.py
+++ b/
pym/portage/dbapi/vartree.py
@@
-65,12
+65,13
@@
class PreservedLibsRegistry(object):
raise PermissionDenied(self._filename)
else:
raise e
-
+ self._data_orig = self._data.copy()
def store(self):
""" Store the registry data to file. No need to call this if autocommit
was enabled.
"""
- if os.environ.get("SANDBOX_ON") == "1":
+ if os.environ.get("SANDBOX_ON") == "1" or \
+ self._data == self._data_orig:
return
try:
f = atomic_ofstream(self._filename)