vardbapi._aux_get: account for _aux_cache_keys_re
authorZac Medico <zmedico@gentoo.org>
Wed, 21 Dec 2011 23:16:13 +0000 (15:16 -0800)
committerZac Medico <zmedico@gentoo.org>
Wed, 21 Dec 2011 23:16:13 +0000 (15:16 -0800)
pym/portage/dbapi/vartree.py

index 6f8ee5f3fe27848ee1341bf458d1c8041380f9d3..7184550b3a3f029979b55301d15dbe39eecb967d 100644 (file)
@@ -720,7 +720,8 @@ class vardbapi(dbapi):
                                        myf.close()
                        except IOError:
                                myd = None
-                               if x not in self._aux_cache_keys:
+                               if x not in self._aux_cache_keys and \
+                                       self._aux_cache_keys_re.match(x) is None:
                                        myd = self._aux_env_search(mycpv, x)
                                if myd is None:
                                        myd = _unicode_decode('')