aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/exheres_layout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/exheres_layout.cc')
-rw-r--r--paludis/repositories/e/exheres_layout.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/paludis/repositories/e/exheres_layout.cc b/paludis/repositories/e/exheres_layout.cc
index 117f358..a7e2ecb 100644
--- a/paludis/repositories/e/exheres_layout.cc
+++ b/paludis/repositories/e/exheres_layout.cc
@@ -516,6 +516,21 @@ ExheresLayout::exlibsdirs_package(const QualifiedPackageName & q) const
return result;
}
+tr1::shared_ptr<const FSEntrySequence>
+ExheresLayout::licenses_dirs() const
+{
+ tr1::shared_ptr<FSEntrySequence> result(new FSEntrySequence);
+
+ if (_imp->repository->params().master_repository)
+ {
+ tr1::shared_ptr<const FSEntrySequence> master(_imp->repository->params().master_repository->layout()->licenses_dirs());
+ std::copy(master->begin(), master->end(), result->back_inserter());
+ }
+ result->push_back(_imp->tree_root / "licenses");
+
+ return result;
+}
+
namespace
{
void aux_files_helper(const FSEntry & d,