diff options
author | Brian Harring <ferringb@gentoo.org> | 2006-02-04 12:32:29 +0000 |
---|---|---|
committer | Brian Harring <ferringb@gentoo.org> | 2006-02-04 12:32:29 +0000 |
commit | 5b36c34c70263b4e6c718e03d36276cc63051fe4 (patch) | |
tree | f1a911e952d5279836aca684207d4732facc8b7c | |
parent | 29e804f4869ed2c61cc737124b507c6c9297432e (diff) | |
download | portage-5b36c34c70263b4e6c718e03d36276cc63051fe4.tar.gz portage-5b36c34c70263b4e6c718e03d36276cc63051fe4.tar.bz2 portage-5b36c34c70263b4e6c718e03d36276cc63051fe4.zip |
aparently someone never heard of rstrip...
svn path=/main/trunk/; revision=2660
-rw-r--r-- | pym/portage.py | 7 |
1 files changed, 1 insertions, 6 deletions
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"] |