Hide a password if a uri contains one (a custom local mirror, for example). Thanks...
authorZac Medico <zmedico@gentoo.org>
Thu, 27 Jul 2006 08:36:23 +0000 (08:36 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 27 Jul 2006 08:36:23 +0000 (08:36 -0000)
svn path=/main/trunk/; revision=4031

pym/portage.py

index 43110b2e806b18de9ed95f1392db98a8ceb9fde7..19bd65a514a173895557dc1fdfd012159cffc57e 100644 (file)
@@ -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)