summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-03-27 15:13:02 -0700
committerZac Medico <zmedico@gentoo.org>2010-03-27 15:13:02 -0700
commit346c01d70b6f09b6bd042e0dff6b2184bd42a779 (patch)
tree89044ddc7ce2d2687a411ff98012245cf35ddc98
parent7713cc93f9211f44b020f8f6e176deaad9304b3a (diff)
downloadportage-346c01d70b6f09b6bd042e0dff6b2184bd42a779.tar.gz
portage-346c01d70b6f09b6bd042e0dff6b2184bd42a779.tar.bz2
portage-346c01d70b6f09b6bd042e0dff6b2184bd42a779.zip
Make sure portage.VERSION is saved in the mtimedb as type str rather than
ObjectProxy.
-rw-r--r--pym/portage/util/mtimedb.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/portage/util/mtimedb.py b/pym/portage/util/mtimedb.py
index 660e9d69f..175bd8f46 100644
--- a/pym/portage/util/mtimedb.py
+++ b/pym/portage/util/mtimedb.py
@@ -5,7 +5,8 @@ __all__ = ['MtimeDB']
import copy
-from portage import pickle, VERSION, _unicode_encode
+import portage
+from portage import pickle, _unicode_encode
from portage.data import portage_gid, uid
from portage.localization import _
from portage.util import apply_secpass_permissions, atomic_ofstream, writemsg
@@ -63,7 +64,7 @@ class MtimeDB(dict):
d.update(self)
# Only commit if the internal state has changed.
if d != self._clean_data:
- d["version"] = VERSION
+ d["version"] = str(portage.VERSION)
try:
f = atomic_ofstream(self.filename, mode='wb')
except EnvironmentError: