aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_repository.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-16 08:23:00 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-16 08:23:00 +0000
commitdc95c2f26ea490fce48575cd19b995d2b34297cf (patch)
treeecf718069b33a1ca5b0ba586ba3bd7f7bdfc09e4 /paludis/repositories/e/e_repository.hh
parent7385570bea9b9d1954edf7a824fa61bd42c371e8 (diff)
downloadpaludis-dc95c2f26ea490fce48575cd19b995d2b34297cf.tar.gz
paludis-dc95c2f26ea490fce48575cd19b995d2b34297cf.tar.xz
Replace RepositoryInfo with emtadata keys. Change how we handle ambiguous _imp. Introduce common Literal metadata key classes to reduce duplicated code. Fixes: ticket:438. Fixes: ticket:416
Diffstat (limited to 'paludis/repositories/e/e_repository.hh')
-rw-r--r--paludis/repositories/e/e_repository.hh13
1 files changed, 11 insertions, 2 deletions
diff --git a/paludis/repositories/e/e_repository.hh b/paludis/repositories/e/e_repository.hh
index 576f17653..d2beabcd6 100644
--- a/paludis/repositories/e/e_repository.hh
+++ b/paludis/repositories/e/e_repository.hh
@@ -66,11 +66,15 @@ namespace paludis
private PrivateImplementationPattern<ERepository>
{
private:
+ PrivateImplementationPattern<ERepository>::ImpPtr & _imp;
+ void _add_metadata_keys() const;
+
void need_mirrors() const;
- public:
- virtual tr1::shared_ptr<const RepositoryInfo> info(bool verbose) const;
+ protected:
+ virtual void need_keys_added() const;
+ public:
/**
* Constructor.
*/
@@ -233,6 +237,11 @@ namespace paludis
tr1::shared_ptr<const RepositoryMaskInfo> repository_masked(const PackageID &) const;
void regenerate_cache() const;
+
+ /* Keys */
+
+ virtual const tr1::shared_ptr<const MetadataStringKey> format_key() const;
+ virtual const tr1::shared_ptr<const MetadataFSEntryKey> installed_root_key() const;
};
}