aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-02 23:25:38 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-02 23:25:38 +0000
commit89c8f4eb442e8e204a8e296f22cf5d5e1f476526 (patch)
tree458905a19b1f256c8fa95e0eeeb2870c63bbe8bd
parentc2d49a602b1218cd0e41ae2637ffadddfced0ecb (diff)
downloadpaludis-89c8f4eb442e8e204a8e296f22cf5d5e1f476526.tar.gz
paludis-89c8f4eb442e8e204a8e296f22cf5d5e1f476526.tar.xz
Support profile deprecated files. Fixes: ticket:163
-rw-r--r--paludis/repositories/e/e_repository_profile.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/repositories/e/e_repository_profile.cc b/paludis/repositories/e/e_repository_profile.cc
index 27c4993..96ce7ab 100644
--- a/paludis/repositories/e/e_repository_profile.cc
+++ b/paludis/repositories/e/e_repository_profile.cc
@@ -183,6 +183,11 @@ namespace paludis
d != d_end ; ++d)
{
Context subcontext("When using directory '" + stringify(*d) + "':");
+
+ if ((*d / "deprecated").is_regular_file_or_symlink_to_regular_file())
+ Log::get_instance()->message(ll_warning, lc_context) << "Profile directory '" << *d
+ << "' is deprecated. See the file '" << (*d / "deprecated") << "' for details";
+
load_profile_directory_recursively(*d);
}