| 11473 | Fix _ObjectKey.__eq__() to account for potential hash |
| zmedico | collisions that would break dict behavior. Thanks to Lucian |
| | Poston for spotting this. |
| 11474 | Revert recent changes to _ObjectKey.__eq__() since it's |
| zmedico | probably a bug if the wrong type is compared for equality |
| | anyway. |
| 11475 | When reloading the emerge config due to global updates in |
| zmedico | action_sync(), correctly update the local root_config |
| | reference. This should fix a KeyError: 'porttree' exception |
| | that's been reported to be triggered after --sync. |
svn path=/main/branches/prefix/; revision=11477
# Reload the whole config from scratch.
settings, trees, mtimedb = load_emerge_config(trees=trees)
portdb = trees[settings["ROOT"]]["porttree"].dbapi
+ root_config = trees[settings["ROOT"]]["root_config"]
mybestpv = portdb.xmatch("bestmatch-visible", "sys-apps/portage")
mypvs = portage.best(
return hash(self._key)
def __eq__(self, other):
- if isinstance(other, self.__class__):
- other_key = other._key
- else:
- other_key = other
- return self._key == other_key
+ return self._key == other._key
def _generate_object_key(self, object):
"""