emerge: deprecate --changelog option (bug 693096)
The emerge --changelog option is not very useful since the
gentoo repository no longer includes ChangeLog files.
Bug: https://bugs.gentoo.org/693096
Signed-off-by: Zac Medico <zmedico@gentoo.org>
diff --git a/lib/_emerge/actions.py b/lib/_emerge/actions.py
index 6ca3235..705a3ff 100644
--- a/lib/_emerge/actions.py
+++ b/lib/_emerge/actions.py
@@ -2908,6 +2908,11 @@
adjust_configs(emerge_config.opts, emerge_config.trees)
+ if "--changelog" in emerge_config.opts:
+ writemsg_level(
+ " %s The emerge --changelog (or -l) option is deprecated\n" %
+ warn("*"), level=logging.WARNING, noiselevel=-1)
+
if profile_check(emerge_config.trees, emerge_config.action) != os.EX_OK:
return 1
diff --git a/man/emerge.1 b/man/emerge.1
index 4db2b3e..d61250e 100644
--- a/man/emerge.1
+++ b/man/emerge.1
@@ -492,6 +492,8 @@
.BR \-\-changelog ", " \-l
Use this in conjunction with the \fB\-\-pretend\fR option. This will
show the ChangeLog entries for all the packages that will be upgraded.
+This option is deprecated because ChangeLog files are no longer
+distributed with Gentoo's ebuild repository.
.TP
.BR "\-\-color < y | n >"
Enable or disable color output. This option will override \fINOCOLOR\fR