aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-08 14:43:07 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-08 04:23:53 +0100
commit8d8edc99e87a778c002def103714abfbeb005e71 (patch)
tree7e346aed806a16e43b0ba3588106f890b6bdeae3 /paludis/repositories/virtuals
parent69f549d700cacfba0644623ee1da114b0e55c92b (diff)
downloadpaludis-8d8edc99e87a778c002def103714abfbeb005e71.tar.gz
paludis-8d8edc99e87a778c002def103714abfbeb005e71.tar.xz
PackageID::dependencies_key
Clients can either continue using the split up keys, or use the new dependencies_key if it exists, ignoring the split up keys if it doesn't. Not all repositories provide a combined key.
Diffstat (limited to 'paludis/repositories/virtuals')
-rw-r--r--paludis/repositories/virtuals/package_id.cc6
-rw-r--r--paludis/repositories/virtuals/package_id.hh1
2 files changed, 7 insertions, 0 deletions
diff --git a/paludis/repositories/virtuals/package_id.cc b/paludis/repositories/virtuals/package_id.cc
index c731c8ac3..1665a3c90 100644
--- a/paludis/repositories/virtuals/package_id.cc
+++ b/paludis/repositories/virtuals/package_id.cc
@@ -284,6 +284,12 @@ VirtualsPackageID::provide_key() const
}
const std::tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> >
+VirtualsPackageID::dependencies_key() const
+{
+ return make_null_shared_ptr();
+}
+
+const std::tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> >
VirtualsPackageID::build_dependencies_key() const
{
return _imp->bdep;
diff --git a/paludis/repositories/virtuals/package_id.hh b/paludis/repositories/virtuals/package_id.hh
index 78f3ce1a7..9a0cf2407 100644
--- a/paludis/repositories/virtuals/package_id.hh
+++ b/paludis/repositories/virtuals/package_id.hh
@@ -91,6 +91,7 @@ namespace paludis
virtual const std::tr1::shared_ptr<const MetadataValueKey<std::tr1::shared_ptr<const PackageID> > > virtual_for_key() const;
virtual const std::tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> > keywords_key() const;
virtual const std::tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> > provide_key() const;
+ virtual const std::tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > dependencies_key() const;
virtual const std::tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > build_dependencies_key() const;
virtual const std::tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > run_dependencies_key() const;
virtual const std::tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > post_dependencies_key() const;