summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-27 08:36:23 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-27 08:36:23 +0000
commit6d4cf62440f60b2e41a9e8e824b876093f6517c3 (patch)
tree569ecb3d8c90c04a28e7f043329f562083f6745e /pym
parenta99ad82ee91f749e5e9bf2ff9438a1ff23ee662d (diff)
downloadportage-6d4cf62440f60b2e41a9e8e824b876093f6517c3.tar.gz
portage-6d4cf62440f60b2e41a9e8e824b876093f6517c3.tar.bz2
portage-6d4cf62440f60b2e41a9e8e824b876093f6517c3.zip
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
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py3
1 files changed, 2 insertions, 1 deletions
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)