aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James (sam_c) <sam@cmpct.info>2020-03-22 02:23:54 +0000
committerZac Medico <zmedico@gentoo.org>2020-03-22 18:17:46 -0700
commitce66387db2ecad4c9b11b94a5aac6cf0181902c0 (patch)
treed00085c0ca91024e7d2f2bbc1f26808ae848e467 /lib/_emerge
parent_hide_url_passwd: replace all occurrences (bug 713726) (diff)
downloadportage-ce66387db2ecad4c9b11b94a5aac6cf0181902c0.tar.gz
portage-ce66387db2ecad4c9b11b94a5aac6cf0181902c0.tar.bz2
portage-ce66387db2ecad4c9b11b94a5aac6cf0181902c0.zip
emerge --info: Filter variables for credentials
Bug: https://bugs.gentoo.org/713726 Closes: https://github.com/gentoo/portage/pull/536 Signed-off-by: Sam James (sam_c) <sam@cmpct.info> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/_emerge')
-rw-r--r--lib/_emerge/actions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/_emerge/actions.py b/lib/_emerge/actions.py
index 7a39d5ec7..392f98d4d 100644
--- a/lib/_emerge/actions.py
+++ b/lib/_emerge/actions.py
@@ -56,6 +56,7 @@ bad = create_color_func("BAD")
warn = create_color_func("WARN")
from portage.package.ebuild._ipc.QueryCommand import QueryCommand
from portage.package.ebuild.doebuild import _check_temp_dir
+from portage.package.ebuild.fetch import _hide_url_passwd
from portage._sets import load_default_config, SETPREFIX
from portage._sets.base import InternalPackageSet
from portage.util import cmp_sort_key, writemsg, varexpand, \
@@ -1899,6 +1900,9 @@ def action_info(settings, trees, myopts, myfiles):
if default is not None and \
default == v:
continue
+
+ v = _hide_url_passwd(v)
+
append('%s="%s"' % (k, v))
else:
use = set(v.split())