aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/exheres_layout.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-18 22:44:26 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-18 22:48:57 +0000
commitbdf2d8a162a597af3a758e84e68c5f65ce088ef3 (patch)
treec079bf31cb6af8203dd572069dddcc0d293f394e /paludis/repositories/e/exheres_layout.cc
parent48c9c785ecd6a96f056b9ecefb6df980967dda22 (diff)
downloadpaludis-bdf2d8a162a597af3a758e84e68c5f65ce088ef3.tar.gz
paludis-bdf2d8a162a597af3a758e84e68c5f65ce088ef3.tar.xz
Split out helpers
Diffstat (limited to 'paludis/repositories/e/exheres_layout.cc')
-rw-r--r--paludis/repositories/e/exheres_layout.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/paludis/repositories/e/exheres_layout.cc b/paludis/repositories/e/exheres_layout.cc
index 5cc01c789..4704ab018 100644
--- a/paludis/repositories/e/exheres_layout.cc
+++ b/paludis/repositories/e/exheres_layout.cc
@@ -20,6 +20,8 @@
#include <paludis/repositories/e/exheres_layout.hh>
#include <paludis/repositories/e/e_repository_exceptions.hh>
#include <paludis/repositories/e/e_repository.hh>
+#include <paludis/repositories/e/file_suffixes.hh>
+
#include <paludis/util/config_file.hh>
#include <paludis/package_id.hh>
#include <paludis/package_database.hh>
@@ -233,7 +235,7 @@ ExheresLayout::need_package_ids(const QualifiedPackageName & n) const
for (FSIterator e(path, { }), e_end ; e != e_end ; ++e)
{
- if (! _imp->repository->is_package_file(n, *e))
+ if (! FileSuffixes::get_instance()->is_package_file(n, *e))
continue;
try
@@ -608,8 +610,8 @@ ExheresLayout::manifest_files(const QualifiedPackageName & qpn) const
continue;
std::string file_type("MISC");
- if (_imp->repository->is_package_file(qpn, (*f)))
- file_type=_imp->repository->get_package_file_manifest_key((*f), qpn);
+ if (FileSuffixes::get_instance()->is_package_file(qpn, (*f)))
+ file_type = FileSuffixes::get_instance()->get_package_file_manifest_key((*f), qpn);
result->insert((*f), file_type);
}