summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gentoo.org>2006-02-04 12:32:29 +0000
committerBrian Harring <ferringb@gentoo.org>2006-02-04 12:32:29 +0000
commit5b36c34c70263b4e6c718e03d36276cc63051fe4 (patch)
treef1a911e952d5279836aca684207d4732facc8b7c
parent29e804f4869ed2c61cc737124b507c6c9297432e (diff)
downloadportage-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.py7
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"]