_pull_valid_cache: fix readonly delete logic
authorZac Medico <zmedico@gentoo.org>
Fri, 14 Oct 2011 00:23:28 +0000 (17:23 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 14 Oct 2011 00:23:28 +0000 (17:23 -0700)
pym/portage/dbapi/porttree.py

index f48741b840e884576ae34305c538681377c3b233..dd627e3a78f54f884440e8a4b632c001793a3492 100644 (file)
@@ -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: