aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-21 19:22:11 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-21 22:01:53 +0100
commitd3209d629c138c09e47cb1d940fefbc3819041c7 (patch)
treeb9ea7380bb39f123b0a5be30452df75de6d9987b
parentcbcd4493d29a3309ffc52f9b91c2fad0ad942ae2 (diff)
downloadpaludis-d3209d629c138c09e47cb1d940fefbc3819041c7.tar.gz
paludis-d3209d629c138c09e47cb1d940fefbc3819041c7.tar.xz
Need more invalidation after updates
-rw-r--r--paludis/repositories/e/vdb_repository.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/paludis/repositories/e/vdb_repository.cc b/paludis/repositories/e/vdb_repository.cc
index 4557059..e622792 100644
--- a/paludis/repositories/e/vdb_repository.cc
+++ b/paludis/repositories/e/vdb_repository.cc
@@ -1465,6 +1465,9 @@ VDBRepository::perform_updates()
}
}
+ if ((! moves.empty()) || (! slot_moves.empty()))
+ invalidate();
+
if ("yes" != getenv_with_default("PALUDIS_CARRY_OUT_UPDATES", ""))
{
if ((! moves.empty()) || (! slot_moves.empty()))
@@ -1477,6 +1480,7 @@ VDBRepository::perform_updates()
else
{
if ((! moves.empty()) || (! slot_moves.empty()))
+ {
if (_imp->params.provides_cache() != FSEntry("/var/empty"))
if (_imp->params.provides_cache().is_regular_file_or_symlink_to_regular_file())
{
@@ -1484,10 +1488,11 @@ VDBRepository::perform_updates()
FSEntry(_imp->params.provides_cache()).unlink();
regenerate_provides_cache();
}
- }
- if ((! moves.empty()) || (! slot_moves.empty()))
- invalidate();
+ std::cout << "Invalidating names cache following updates" << std::endl;
+ _imp->names_cache->regenerate_cache();
+ }
+ }
if (! dep_rewrites.empty())
{