From: Zac Medico Date: Thu, 27 Jul 2006 08:36:23 +0000 (-0000) Subject: Hide a password if a uri contains one (a custom local mirror, for example). Thanks... X-Git-Tag: v2.1.1~134 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6d4cf62440f60b2e41a9e8e824b876093f6517c3;p=portage.git 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 --- 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)