aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--modules/profile.eselect7
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a3eb59..84673d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-12-22 Ulrich Mueller <ulm@gentoo.org>
+
+ * modules/profile.eselect (set_symlink): Warn about deprecated
+ profiles, bug 673568.
+
2018-08-07 Ulrich Müller <ulm@gentoo.org>
* man/profile.eselect.5: Update examples, bug 662996.
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()