summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-08 16:20:31 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-08 16:20:31 +0000
commit0d7436de8bb1e57926e62fd9252bd599d52cd27b (patch)
treec59e2d4f09806a51e57bde7e2fd8aaf9bc97355f /pym
parentf35debfded80d183f9adaf0e22aca3b29d7f2681 (diff)
downloadportage-0d7436de8bb1e57926e62fd9252bd599d52cd27b.tar.gz
portage-0d7436de8bb1e57926e62fd9252bd599d52cd27b.tar.bz2
portage-0d7436de8bb1e57926e62fd9252bd599d52cd27b.zip
For bug #160893, ignore a KeyError during cache cleansing since that key isn't wanted anyway.
svn path=/main/trunk/; revision=5483
Diffstat (limited to 'pym')
-rw-r--r--pym/cache/util.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/cache/util.py b/pym/cache/util.py
index 2bfaa76fb..6393deef5 100644
--- a/pym/cache/util.py
+++ b/pym/cache/util.py
@@ -96,7 +96,10 @@ def mirror_cache(valid_nodes_iterable, src_cache, trg_cache, eclass_cache=None,
# ok. by this time, the trg_cache is up to date, and we have a dict
# with a crapload of cpv's. we now walk the target db, removing stuff if it's in the list.
for key in dead_nodes:
- try: del trg_cache[key]
+ try:
+ del trg_cache[key]
+ except KeyError:
+ pass
except cache_errors.CacheError, ce:
noise.exception(ce)
del ce