aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/fake
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-01-07 00:41:29 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-01-07 00:41:29 +0000
commitff8a2c2894bc88278fea2e114ead3143be8696ff (patch)
tree8afdbd70600fa4cc8fe2a505da39947580630335 /paludis/repositories/fake
parentbfbc950a043521060ac42b4745f9feafcae75cd9 (diff)
downloadpaludis-ff8a2c2894bc88278fea2e114ead3143be8696ff.tar.gz
paludis-ff8a2c2894bc88278fea2e114ead3143be8696ff.tar.xz
Fix homepage_key check.
Diffstat (limited to 'paludis/repositories/fake')
-rw-r--r--paludis/repositories/fake/fake_package_id.cc9
-rw-r--r--paludis/repositories/fake/fake_package_id.hh1
2 files changed, 10 insertions, 0 deletions
diff --git a/paludis/repositories/fake/fake_package_id.cc b/paludis/repositories/fake/fake_package_id.cc
index 83d7adec5..91eb2dbe4 100644
--- a/paludis/repositories/fake/fake_package_id.cc
+++ b/paludis/repositories/fake/fake_package_id.cc
@@ -412,6 +412,9 @@ namespace paludis
src_uri(new FakeMetadataSpecTreeKey<FetchableURISpecTree>("SRC_URI", "Source URIs",
"", tr1::bind(&erepository::parse_fetchable_uri, _1,
*erepository::EAPIData::get_instance()->eapi_from_string(eapi)), mkt_dependencies)),
+ homepage(new FakeMetadataSpecTreeKey<SimpleURISpecTree>("HOMEPAGE", "Homepage",
+ "", tr1::bind(&erepository::parse_simple_uri, _1,
+ *erepository::EAPIData::get_instance()->eapi_from_string(eapi)), mkt_dependencies)),
has_masks(false)
{
build_dependencies_labels->push_back(make_shared_ptr(new DependencyBuildLabel("DEPEND")));
@@ -605,6 +608,12 @@ FakePackageID::homepage_key() const
return _imp->homepage;
}
+const tr1::shared_ptr<FakeMetadataSpecTreeKey<SimpleURISpecTree> >
+FakePackageID::homepage_key()
+{
+ return _imp->homepage;
+}
+
const tr1::shared_ptr<const MetadataStringKey>
FakePackageID::short_description_key() const
{
diff --git a/paludis/repositories/fake/fake_package_id.hh b/paludis/repositories/fake/fake_package_id.hh
index 125674d9c..8e5b7ab5a 100644
--- a/paludis/repositories/fake/fake_package_id.hh
+++ b/paludis/repositories/fake/fake_package_id.hh
@@ -234,6 +234,7 @@ namespace paludis
const tr1::shared_ptr<FakeMetadataSpecTreeKey<DependencySpecTree> > post_dependencies_key();
const tr1::shared_ptr<FakeMetadataSpecTreeKey<DependencySpecTree> > suggested_dependencies_key();
const tr1::shared_ptr<FakeMetadataSpecTreeKey<FetchableURISpecTree> > fetches_key();
+ const tr1::shared_ptr<FakeMetadataSpecTreeKey<SimpleURISpecTree> > homepage_key();
void set_slot(const SlotName &);