summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"]