aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/traditional_layout.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-14 22:05:31 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-14 22:05:47 +0100
commit352b3fb8a500c75d619951750d89cddd9d5a6d4e (patch)
tree27f989834c371851090c9b05c9709840f1c1f2c0 /paludis/repositories/e/traditional_layout.cc
parente3cce2ea1add93fd66450100c7e413abc6f0b70c (diff)
downloadpaludis-352b3fb8a500c75d619951750d89cddd9d5a6d4e.tar.gz
paludis-352b3fb8a500c75d619951750d89cddd9d5a6d4e.tar.xz
profiles/updates
Fixes: ticket:162
Diffstat (limited to 'paludis/repositories/e/traditional_layout.cc')
-rw-r--r--paludis/repositories/e/traditional_layout.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/paludis/repositories/e/traditional_layout.cc b/paludis/repositories/e/traditional_layout.cc
index 15ce2c538..e30842ae5 100644
--- a/paludis/repositories/e/traditional_layout.cc
+++ b/paludis/repositories/e/traditional_layout.cc
@@ -41,6 +41,7 @@
#include <paludis/util/hashes.hh>
#include <paludis/util/make_shared_ptr.hh>
#include <paludis/choice.hh>
+#include <paludis/literal_metadata_key.hh>
#include <tr1/functional>
#include <tr1/unordered_map>
#include <functional>
@@ -671,3 +672,13 @@ TraditionalLayout::accounts_repository_data_location_key() const
return make_null_shared_ptr();
}
+std::tr1::shared_ptr<MetadataValueKey<FSEntry> >
+TraditionalLayout::e_updates_location_key() const
+{
+ if ((_imp->tree_root / "profiles" / "updates").exists())
+ return make_shared_ptr(new LiteralMetadataValueKey<FSEntry>("e_updates_location",
+ "VDBRepository updates data location", mkt_internal, _imp->tree_root / "profiles" / "updates"));
+ else
+ return make_null_shared_ptr();
+}
+