From f1902e624313bd9f34b0e22eb567034242f3c25d Mon Sep 17 00:00:00 2001
From: Aleksandar Petrinic
The names_cache =
option, if set to (for example) /var/cache/paludis/names
, can be used to
make resolving pkg
to cat/pkg
much faster (a lot less than a second, as opposed to tens of
seconds on typical hardware). Most users will benefit hugely from this option. However, Portage will not update or use
-this cache, so if for any reason you use Portage for any operation, you must then run paludis
- --regenerate-installable-cache
(and possibly paludis --regenerate-installed-cache
if you also
-use caches for VDB as described below). You will also need to force a cache regeneration if you manually (as opposed to
+this cache, so if for any reason you use Portage for any operation, you must then run cave
+fix-cache
. You will also need to force a cache regeneration if you manually (as opposed to
via --sync
) modify a repository.
To disable the names cache, use /var/empty
as the value.
The names_cache =
option, if set to (for example) /var/cache/paludis/names
, can be used to
make resolving pkg
to cat/pkg
much faster (a lot less than a second, as opposed to tens of
seconds on typical hardware). Most users will benefit hugely from this option. However, Portage will not update or use
-this cache, so if for any reason you use Portage for any operation, you must then run paludis
- --regenerate-installed-cache
(and possibly paludis --regenerate-installable-cache
if you also
-use caches for other repositories as described above).
cave
+fix-cache
.
The provides_cache =
option, if set to (for example) /var/cache/paludis/provides
, can be
used to make resolving an old style virtual to its providers much faster (a lot less of a second, as opposed to anywhere
diff --git a/paludis/repositories/e/vdb_repository.cc b/paludis/repositories/e/vdb_repository.cc
index efdb3dc91..ec62c2f08 100644
--- a/paludis/repositories/e/vdb_repository.cc
+++ b/paludis/repositories/e/vdb_repository.cc
@@ -630,7 +630,7 @@ VDBRepository::load_provided_using_cache() const
{
Log::get_instance()->message("e.vdb.provides_cache.not_regular_file", ll_warning, lc_no_context)
<< "Provides cache at '" << _imp->params.provides_cache() << "' is not a regular file. Perhaps you need to regenerate "
- "the cache using 'paludis --regenerate-installed-cache'?";
+ "the cache using 'cave fix-cache'?";
return false;
}
@@ -643,7 +643,7 @@ VDBRepository::load_provided_using_cache() const
{
Log::get_instance()->message("e.vdb.provides_cache.unsupported", ll_warning, lc_no_context) << "Can't use provides cache at '"
<< _imp->params.provides_cache() << "' because format '" << version << "' is not 'paludis-3'. Perhaps you need to regenerate "
- "the cache using 'paludis --regenerate-installed-cache'?";
+ "the cache using 'cave fix-cache'?";
return false;
}
diff --git a/paludis/repository_name_cache.cc b/paludis/repository_name_cache.cc
index abf5d1ac3..27e76a810 100644
--- a/paludis/repository_name_cache.cc
+++ b/paludis/repository_name_cache.cc
@@ -92,7 +92,7 @@ Imp