aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-06-18 10:21:29 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-06-18 10:21:29 +0000
commit85a6230126000a6744192f1f7528c95585e7ed05 (patch)
treeec6a2a6144c2b1b1f25162607ccd446ef919d82c
parent9cad12caedb71f007cf33aefa70bea160f9364e3 (diff)
downloadpaludis-85a6230126000a6744192f1f7528c95585e7ed05.tar.gz
paludis-85a6230126000a6744192f1f7528c95585e7ed05.tar.xz
If the user mirrors.conf file contains an entry with a mirror named '*', first try fetching from there.
-rw-r--r--paludis/portage_repository.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/paludis/portage_repository.cc b/paludis/portage_repository.cc
index f38bb2a..0671c64 100644
--- a/paludis/portage_repository.cc
+++ b/paludis/portage_repository.cc
@@ -1416,6 +1416,13 @@ PortageRepository::do_install(const QualifiedPackageName & q, const VersionSpec
}
archives.append(" ");
+ /* add * mirror entries */
+ for (Environment::MirrorIterator
+ m(_imp->env->begin_mirrors("*")),
+ m_end(_imp->env->end_mirrors("*")) ;
+ m != m_end ; ++m)
+ flat_src_uri.append(m->second + "/" + (*ff)->text().substr(p + 1) + " ");
+
if (0 == (*ff)->text().compare(0, 9, "mirror://"))
{
std::string mirror((*ff)->text().substr(9));