From: Zac Medico Date: Mon, 21 Sep 2009 22:26:56 +0000 (-0000) Subject: Fix 'RuntimeError: dictionary changed size during iteration' in X-Git-Tag: v2.2_rc42~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7f3d199fee7f13cf8d907d77e0758e3af2153bd5;p=portage.git Fix 'RuntimeError: dictionary changed size during iteration' in _owners_db._populate() with py3k. svn path=/main/trunk/; revision=14370 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 12dd15f1b..8d0256c12 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1538,7 +1538,7 @@ class vardbapi(dbapi): # Delete any stale cache. stale_hashes = cached_hashes.difference(valid_pkg_hashes) if stale_hashes: - for base_name_hash, bucket in base_names.items(): + for base_name_hash, bucket in list(base_names.items()): for hash_value in stale_hashes.intersection(bucket): del bucket[hash_value] if not bucket: