projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a99ad82
)
Hide a password if a uri contains one (a custom local mirror, for example). Thanks...
author
Zac Medico
<zmedico@gentoo.org>
Thu, 27 Jul 2006 08:36:23 +0000
(08:36 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 27 Jul 2006 08:36:23 +0000
(08:36 -0000)
svn path=/main/trunk/; revision=4031
pym/portage.py
patch
|
blob
|
history
diff --git
a/pym/portage.py
b/pym/portage.py
index 43110b2e806b18de9ed95f1392db98a8ceb9fde7..19bd65a514a173895557dc1fdfd012159cffc57e 100644
(file)
--- 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)