From: Zac Medico Date: Thu, 10 Jan 2013 09:17:46 +0000 (-0800) Subject: FetchTask: avoid possible duplicate URI X-Git-Tag: v2.2.0_alpha150~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9fc0204ad78b998e589d2f232eceda5e018584d6;p=portage.git FetchTask: avoid possible duplicate URI --- diff --git a/pym/portage/_emirrordist/FetchTask.py b/pym/portage/_emirrordist/FetchTask.py index 50e424289..107db56d4 100644 --- a/pym/portage/_emirrordist/FetchTask.py +++ b/pym/portage/_emirrordist/FetchTask.py @@ -255,8 +255,10 @@ class FetchTask(CompositeTask): if uri not in self._tried_uris: return uri - if self._primaryuri_stack: - return self._primaryuri_stack.pop() + while self._primaryuri_stack: + uri = self._primaryuri_stack.pop() + if uri not in self._tried_uris: + return uri return None