aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/fake/fake_repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-12-16 19:09:18 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-12-16 19:09:18 +0000
commitd91e364ec2194766b7477cf482eedaa88d6acebc (patch)
tree479d9ac5ead34c630f0d771bdb527f54ebd8bc53 /paludis/repositories/fake/fake_repository.cc
parenta71cdd3cdc1873659745b742ed1b1756c4aa2722 (diff)
downloadpaludis-d91e364ec2194766b7477cf482eedaa88d6acebc.tar.gz
paludis-d91e364ec2194766b7477cf482eedaa88d6acebc.tar.xz
Add initial_labels to the newly specialised MetadataSpecTreeKey<DependencySpecTree>. Add EAPI paludis-1 support for labels. Let FakeRepository's EAPI be overridden.
Diffstat (limited to 'paludis/repositories/fake/fake_repository.cc')
-rw-r--r--paludis/repositories/fake/fake_repository.cc29
1 files changed, 28 insertions, 1 deletions
diff --git a/paludis/repositories/fake/fake_repository.cc b/paludis/repositories/fake/fake_repository.cc
index 49c733ffc..477f7ebe0 100644
--- a/paludis/repositories/fake/fake_repository.cc
+++ b/paludis/repositories/fake/fake_repository.cc
@@ -34,6 +34,8 @@
using namespace paludis;
+#include <paludis/repositories/fake/fake_repository-sr.cc>
+
namespace paludis
{
template<>
@@ -72,7 +74,32 @@ FakeRepository::FakeRepository(const Environment * const e, const RepositoryName
.make_virtuals_interface(0)
.qa_interface(0)
.hook_interface(0)
- .manifest_interface(0)),
+ .manifest_interface(0),
+ "0"),
+ _imp(PrivateImplementationPattern<FakeRepository>::_imp)
+{
+ add_metadata_key(_imp->format_key);
+}
+
+FakeRepository::FakeRepository(const FakeRepositoryParams & params) :
+ PrivateImplementationPattern<FakeRepository>(new Implementation<FakeRepository>),
+ FakeRepositoryBase(params.environment, params.name, RepositoryCapabilities::create()
+ .sets_interface(this)
+ .syncable_interface(0)
+ .use_interface(this)
+ .world_interface(0)
+ .mirrors_interface(this)
+ .environment_variable_interface(0)
+ .provides_interface(0)
+ .virtuals_interface(DistributionData::get_instance()->distribution_from_string(
+ params.environment->default_distribution())->support_old_style_virtuals ? this : 0)
+ .destination_interface(0)
+ .e_interface(0)
+ .make_virtuals_interface(0)
+ .qa_interface(0)
+ .hook_interface(0)
+ .manifest_interface(0),
+ params.eapi),
_imp(PrivateImplementationPattern<FakeRepository>::_imp)
{
add_metadata_key(_imp->format_key);