aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-04-16 20:34:03 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-04-16 20:34:03 +0000
commit41d532638baec1cf2c8caee379f95e8e47668b89 (patch)
treedcfde49a596559dcfd131208b95826ea1f53150a
parent71f51bec18597201fd242a8d6d1901376f13091c (diff)
downloadpaludis-41d532638baec1cf2c8caee379f95e8e47668b89.tar.gz
paludis-41d532638baec1cf2c8caee379f95e8e47668b89.tar.xz
Better warning messages
-rw-r--r--paludis/repositories/e/vdb_repository.cc6
-rw-r--r--paludis/repository_name_cache.cc6
2 files changed, 8 insertions, 4 deletions
diff --git a/paludis/repositories/e/vdb_repository.cc b/paludis/repositories/e/vdb_repository.cc
index eeee4e4..0ef33a2 100644
--- a/paludis/repositories/e/vdb_repository.cc
+++ b/paludis/repositories/e/vdb_repository.cc
@@ -540,7 +540,8 @@ VDBRepository::load_provided_using_cache() const
if (! _imp->params.provides_cache.is_regular_file())
{
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.";
+ << "Provides cache at '" << _imp->params.provides_cache << "' is not a regular file. Perhaps you need to regenerate "
+ "the cache using 'paludis --regenerate-installed-cache'?";
return false;
}
@@ -552,7 +553,8 @@ VDBRepository::load_provided_using_cache() const
if (version != "paludis-3")
{
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'";
+ << _imp->params.provides_cache << "' because format '" << version << "' is not 'paludis-3'. Perhaps you need to regenerate "
+ "the cache using 'paludis --regenerate-installed-cache'?";
return false;
}
diff --git a/paludis/repository_name_cache.cc b/paludis/repository_name_cache.cc
index fda0d7f..dd4e81b 100644
--- a/paludis/repository_name_cache.cc
+++ b/paludis/repository_name_cache.cc
@@ -88,7 +88,8 @@ Implementation<RepositoryNameCache>::find(const PackageNamePart & p) const
{
Log::get_instance()->message("repository.names_cache.unsupported", ll_warning, lc_context)
<< "Names cache for '" << repo->name() << "' has version string '" << line
- << "', which is not supported. Was it generated using a different Paludis version?";
+ << "', which is not supported. Was it generated using a different Paludis version? Perhaps you need to regenerate "
+ "the cache using 'paludis --regenerate-installed-cache' or 'paludis --regenerate-installable-cache'?";
usable = false;
return name_cache_map.end();
}
@@ -120,7 +121,8 @@ Implementation<RepositoryNameCache>::find(const PackageNamePart & p) const
Log::get_instance()->message("repository.names_cache.unversioned", ll_warning, lc_context)
<< "Names cache for '" << repo->name()
<< "' has no version information, so cannot be used. Either it was generated using "
- "an older Paludis version or it has not yet been generated.";
+ "an older Paludis version or it has not yet been generated. Perhaps you need to regenerate "
+ "the cache using 'paludis --regenerate-installed-cache' or 'paludis --regenerate-installable-cache'?";
usable = false;
return name_cache_map.end();
}