diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-02-23 08:35:57 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-02-23 08:35:57 +0000 |
commit | 00dc361f4dbd8b91505c6772f3676afde720c66e (patch) | |
tree | 62581f945ef86cb32de28655dc347ea2cc260a95 | |
parent | 36383ddf8a608a4df5818071f26884acd1170d8c (diff) | |
download | portage-00dc361f4dbd8b91505c6772f3676afde720c66e.tar.gz portage-00dc361f4dbd8b91505c6772f3676afde720c66e.tar.bz2 portage-00dc361f4dbd8b91505c6772f3676afde720c66e.zip |
Revert vardbapi._owners_cache_version and unicode handling since it needs
some more work.
svn path=/main/trunk/; revision=12693
-rw-r--r-- | pym/portage/dbapi/vartree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 9a2cc2300..7509f06f5 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -702,7 +702,7 @@ class vardbapi(dbapi): "|".join(_excluded_dirs) + r')$') _aux_cache_version = "1" - _owners_cache_version = "2" + _owners_cache_version = "1" # Number of uncached packages to trigger cache update, since # it's wasteful to update it for every vdb change. @@ -792,7 +792,7 @@ class vardbapi(dbapi): counter, = self.aux_get(cpv, aux_keys) except KeyError: continue - h.update(counter.encode('ascii', 'backslashreplace')) + h.update(counter) return h.hexdigest() def cpv_inject(self, mycpv): @@ -1392,7 +1392,7 @@ class vardbapi(dbapi): h = self._new_hash() # Always use a constant utf_8 encoding here, since # the "default" encoding can change. - h.update(s.encode('utf_8', 'backslashreplace')) + h.update(s) h = h.hexdigest() h = h[-self._hex_chars:] h = int(h, 16) |