aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-06-27 22:11:26 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-06-27 22:11:26 +0000
commitf5d52372d8c39a34cb1a06864947aee62230ce50 (patch)
tree65173a85b8309367ea8d4af844c1409d5fe76084
parentd80b8dbcc876b0ac58c910bdcac333a99c42b2c9 (diff)
downloadpaludis-f5d52372d8c39a34cb1a06864947aee62230ce50.tar.gz
paludis-f5d52372d8c39a34cb1a06864947aee62230ce50.tar.xz
(from ciaranm) Fix provides_cache generation.
-rw-r--r--paludis/repositories/gentoo/vdb_repository.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/repositories/gentoo/vdb_repository.cc b/paludis/repositories/gentoo/vdb_repository.cc
index cf0393f..2ea2b9d 100644
--- a/paludis/repositories/gentoo/vdb_repository.cc
+++ b/paludis/repositories/gentoo/vdb_repository.cc
@@ -988,6 +988,9 @@ VDBRepository::regenerate_provides_cache() const
for (PackageIDSequence::Iterator e(i->second->begin()), e_end(i->second->end()) ;
e != e_end ; ++e)
{
+ if (! (*e)->provide_key())
+ continue;
+
tr1::shared_ptr<const ProvideSpecTree::ConstItem> provide((*e)->provide_key()->value());;
DepSpecPrettyPrinter p(0, false);
provide->accept(p);