From 346c01d70b6f09b6bd042e0dff6b2184bd42a779 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 27 Mar 2010 15:13:02 -0700 Subject: [PATCH] Make sure portage.VERSION is saved in the mtimedb as type str rather than ObjectProxy. --- pym/portage/util/mtimedb.py | 5 +++-- 1 file 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: -- 2.26.2