FileNotFound, InvalidAtom, InvalidDependString, InvalidPackageName
from portage.localization import _
-from portage import eclass_cache, auxdbkeys, \
+from portage import eclass_cache, \
eapi_is_supported, dep_check, \
_eapi_is_deprecated
from portage import os
'perms' : 0o664
})
- # XXX: REMOVE THIS ONCE UNUSED_0 IS YANKED FROM auxdbkeys
- # ~harring
- filtered_auxdbkeys = [x for x in auxdbkeys if not x.startswith("UNUSED_0")]
- filtered_auxdbkeys.sort()
- filtered_auxdbkeys = tuple(filtered_auxdbkeys)
- self._filtered_auxdbkeys = filtered_auxdbkeys
# If secpass < 1, we don't want to write to the cache
# since then we won't be able to apply group permissions
# to the cache entries/directories.
if (secpass < 1 and not depcachedir_unshared) or not depcachedir_w_ok:
for x in self.porttrees:
self.auxdb[x] = volatile.database(
- self.depcachedir, x, filtered_auxdbkeys,
+ self.depcachedir, x, self._known_keys,
**cache_kwargs)
try:
self._ro_auxdb[x] = self.auxdbmodule(self.depcachedir, x,
- filtered_auxdbkeys, readonly=True, **cache_kwargs)
+ self._known_keys, readonly=True, **cache_kwargs)
except CacheError:
pass
else:
continue
# location, label, auxdbkeys
self.auxdb[x] = self.auxdbmodule(
- self.depcachedir, x, filtered_auxdbkeys, **cache_kwargs)
+ self.depcachedir, x, self._known_keys, **cache_kwargs)
if "metadata-transfer" not in self.settings.features:
for x in self.porttrees:
if x in self._pregen_auxdb:
def _create_pregen_cache(self, tree):
conf = self.repositories.get_repo_for_location(tree)
cache = conf.get_pregenerated_cache(
- self._filtered_auxdbkeys, readonly=True)
+ self._known_keys, readonly=True)
if cache is not None:
try:
cache.ec = self._repo_info[tree].eclass_db
if aux_cache is not None:
return [aux_cache.get(x, "") for x in mylist]
cache_me = True
- global auxdbkeys, auxdbkeylen
+
try:
cat, pkg = mycpv.split("/", 1)
except ValueError: