summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-13 17:23:28 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-13 17:23:28 -0700
commit382e74bb63d6f1eed2b3d88daee95fc7530df3da (patch)
treecab4f4806d16e65ad29e3d7675634e27485e7e67
parentd4ea29bf6a3ce35d49e0f54f9173e3a6e42da2d6 (diff)
downloadportage-382e74bb63d6f1eed2b3d88daee95fc7530df3da.tar.gz
portage-382e74bb63d6f1eed2b3d88daee95fc7530df3da.tar.bz2
portage-382e74bb63d6f1eed2b3d88daee95fc7530df3da.zip
_pull_valid_cache: fix readonly delete logic
-rw-r--r--pym/portage/dbapi/porttree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index f48741b84..dd627e3a7 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -429,7 +429,7 @@ class portdbapi(dbapi):
except KeyError:
pass
except CacheError:
- if auxdb is not pregen_auxdb:
+ if not auxdb.readonly:
try:
del auxdb[cpv]
except KeyError: