aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_repository_news.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/e_repository_news.cc')
-rw-r--r--paludis/repositories/e/e_repository_news.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/paludis/repositories/e/e_repository_news.cc b/paludis/repositories/e/e_repository_news.cc
index cac18a6..b0198c1 100644
--- a/paludis/repositories/e/e_repository_news.cc
+++ b/paludis/repositories/e/e_repository_news.cc
@@ -36,6 +36,7 @@
#include <paludis/generator.hh>
#include <paludis/filter.hh>
#include <paludis/filtered_generator.hh>
+#include <paludis/distribution.hh>
#include <set>
#include <ostream>
@@ -62,6 +63,7 @@ namespace paludis
const ERepository * const e_repository;
const erepository::ERepositoryParams params;
+ const FSEntry news_directory;
const FSEntry skip_file;
const FSEntry unread_file;
@@ -70,9 +72,10 @@ namespace paludis
environment(e),
e_repository(p),
params(k),
- skip_file(e->root() / "var" / "lib" / "gentoo" / "news" /
+ news_directory((*DistributionData::get_instance()->distribution_from_string(e->distribution())).news_directory()),
+ skip_file(e->root() / news_directory /
("news-" + stringify(e_repository->name()) + ".skip")),
- unread_file(e->root() / "var" / "lib" / "gentoo" / "news" /
+ unread_file(e->root() / news_directory /
("news-" + stringify(e_repository->name()) + ".unread"))
{
}