Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Zac Medico <zmedico@g.o>
Subject: [gentoo-portage-dev] [PATCH] emerge: deprecate --changelog option (bug 693096)
Date: Fri, 30 Aug 2019 03:32:22
Message-Id: 20190830033207.27520-1-zmedico@gentoo.org
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@g.o>
---
 lib/_emerge/actions.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/_emerge/actions.py b/lib/_emerge/actions.py
index 6ca323501..705a3ff1c 100644
--- a/lib/_emerge/actions.py
+++ b/lib/_emerge/actions.py
@@ -2908,6 +2908,11 @@ def run_action(emerge_config):
 
 	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
 
-- 
2.21.0