From: Brian Harring Date: Sat, 4 Feb 2006 12:32:29 +0000 (-0000) Subject: aparently someone never heard of rstrip... X-Git-Tag: v2.1_pre5_2760~84 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5b36c34c70263b4e6c718e03d36276cc63051fe4;p=portage.git aparently someone never heard of rstrip... svn path=/main/trunk/; revision=2660 --- diff --git a/pym/portage.py b/pym/portage.py index 9ab0a0891..4bd7a65ac 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1718,12 +1718,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", pass else: if try_mirrors: - for x in mysettings["GENTOO_MIRRORS"].split(): - if x: - if x[-1] == '/': - mymirrors += [x[:-1]] - else: - mymirrors += [x] + mymirrors += [x.rstrip("/") for x in mysettings["GENTOO_MIRRORS"].split() if x] mydigests = {} digestfn = mysettings["FILESDIR"]+"/digest-"+mysettings["PF"]