aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile.eselect')
-rw-r--r--modules/profile.eselect7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/profile.eselect b/modules/profile.eselect
index b88cc2b..68b0826 100644
--- a/modules/profile.eselect
+++ b/modules/profile.eselect
@@ -116,6 +116,13 @@ set_symlink() {
[[ ! -d ${repopath}/profiles/${target} ]] \
&& die -q "No profile directory for target \"${target}\""
+ if [[ -f ${repopath}/profiles/${target}/deprecated ]]; then
+ local upgrade=$(sed 1q "${repopath}/profiles/${target}/deprecated")
+ write_warning_msg "Profile ${target} is deprecated"
+ [[ -n ${upgrade} ]] \
+ && write_warning_msg "Recommending upgrade to ${upgrade}"
+ fi
+
# we must call remove_symlink() here instead of calling it from
# do_set(), since if the link is removed, we cannot reliably
# determine ${arch} in find_targets()