aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e')
-rw-r--r--paludis/repositories/e/e_installed_repository_id.cc6
-rw-r--r--paludis/repositories/e/e_installed_repository_id.hh2
-rw-r--r--paludis/repositories/e/ebuild_id.cc6
-rw-r--r--paludis/repositories/e/ebuild_id.hh2
4 files changed, 16 insertions, 0 deletions
diff --git a/paludis/repositories/e/e_installed_repository_id.cc b/paludis/repositories/e/e_installed_repository_id.cc
index 62fb0de72..16bcea26d 100644
--- a/paludis/repositories/e/e_installed_repository_id.cc
+++ b/paludis/repositories/e/e_installed_repository_id.cc
@@ -867,6 +867,12 @@ EInstalledRepositoryID::contents_key() const
return _imp->keys->contents;
}
+const std::shared_ptr<const Contents>
+EInstalledRepositoryID::contents() const
+{
+ return contents_key()->parse_value();
+}
+
const std::shared_ptr<const MetadataTimeKey>
EInstalledRepositoryID::installed_time_key() const
{
diff --git a/paludis/repositories/e/e_installed_repository_id.hh b/paludis/repositories/e/e_installed_repository_id.hh
index b4b091d85..8fa93bc66 100644
--- a/paludis/repositories/e/e_installed_repository_id.hh
+++ b/paludis/repositories/e/e_installed_repository_id.hh
@@ -112,6 +112,8 @@ namespace paludis
virtual void can_drop_in_memory_cache() const;
virtual void set_scm_revision(const std::string &) const PALUDIS_ATTRIBUTE((noreturn));
+
+ virtual const std::shared_ptr<const Contents> contents() const;
};
}
}
diff --git a/paludis/repositories/e/ebuild_id.cc b/paludis/repositories/e/ebuild_id.cc
index 135be592b..0a34b5779 100644
--- a/paludis/repositories/e/ebuild_id.cc
+++ b/paludis/repositories/e/ebuild_id.cc
@@ -1715,3 +1715,9 @@ EbuildID::set_scm_revision(const std::string & s) const
}
}
+const std::shared_ptr<const Contents>
+EbuildID::contents() const
+{
+ return make_null_shared_ptr();
+}
+
diff --git a/paludis/repositories/e/ebuild_id.hh b/paludis/repositories/e/ebuild_id.hh
index db04dab08..db76271e8 100644
--- a/paludis/repositories/e/ebuild_id.hh
+++ b/paludis/repositories/e/ebuild_id.hh
@@ -170,6 +170,8 @@ namespace paludis
bool might_be_binary() const;
virtual void set_scm_revision(const std::string &) const;
+
+ virtual const std::shared_ptr<const Contents> contents() const;
};
}
}