From 6d4cf62440f60b2e41a9e8e824b876093f6517c3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 27 Jul 2006 08:36:23 +0000 Subject: [PATCH] Hide a password if a uri contains one (a custom local mirror, for example). Thanks to nelchael for the patch. svn path=/main/trunk/; revision=4031 --- pym/portage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index 43110b2e8..19bd65a51 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2024,7 +2024,8 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", else: #normal mode: locfetch=fetchcommand - writemsg(">>> Downloading "+str(loc)+"\n") + writemsg_stdout(">>> Downloading '%s'\n" % \ + re.sub(r'//(.+):.+@(.+)/',r'//\1:*password*@\2/', loc)) myfetch=string.replace(locfetch,"${URI}",loc) myfetch=string.replace(myfetch,"${FILE}",myfile) -- 2.26.2