Bug #205966 - Don't show binhost password when displaying the uri. Thanks
authorZac Medico <zmedico@gentoo.org>
Thu, 31 Jan 2008 04:06:07 +0000 (04:06 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 31 Jan 2008 04:06:07 +0000 (04:06 -0000)
to Mike "Fuzzy" Partin <fuzzyoni@gmail.com>.

svn path=/main/branches/2.1.2/; revision=9237

pym/portage.py

index 1ef6602a78c0c000f75329d89f263cb2b250bb52..27647514a300339f8b8a5211386ea06d869ae768 100644 (file)
@@ -7803,7 +7803,10 @@ class binarytree(object):
                                chunk_size = 3000
 
                        writemsg_stdout("\n")
-                       writemsg_stdout(green("Fetching bininfo from ")+base_url+"\n")
+                       writemsg_stdout(
+                               green("Fetching bininfo from ") + \
+                               re.sub(r'//(.+):.+@(.+)/', r'//\1:*password*@\2/', base_url) + "\n")
+
                        self.remotepkgs = getbinpkg.dir_get_metadata(
                                self.settings["PORTAGE_BINHOST"], chunk_size=chunk_size)
                        #writemsg_stdout(green("  -- DONE!\n\n"))