aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-01 22:56:28 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-01 22:56:28 +0000
commitef6260f1c52f6da76bb7ee48c65449cf546ae112 (patch)
treedb9809837d07bb5906d900325a456fe80807c3d0
parent83dba6bcf275e64e2f2e817d0f5fd27e5001dce9 (diff)
downloadpaludis-ef6260f1c52f6da76bb7ee48c65449cf546ae112.tar.gz
paludis-ef6260f1c52f6da76bb7ee48c65449cf546ae112.tar.xz
Fall back to mirror://gentoo/ for fetches
-rw-r--r--paludis/portage_repository.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/paludis/portage_repository.cc b/paludis/portage_repository.cc
index b76f5b1..b7b4096 100644
--- a/paludis/portage_repository.cc
+++ b/paludis/portage_repository.cc
@@ -960,6 +960,17 @@ PortageRepository::do_install(const QualifiedPackageName & q, const VersionSpec
else
flat_src_uri.append((*ff)->text());
flat_src_uri.append(" ");
+
+ /* add mirror://gentoo/ entries */
+ /// \todo don't hardcode
+ if (is_mirror("gentoo"))
+ {
+ for (std::list<std::string>::iterator
+ m(_imp->mirrors.find("gentoo")->second.begin()),
+ m_end(_imp->mirrors.find("gentoo")->second.end()) ;
+ m != m_end ; ++m)
+ flat_src_uri.append(*m + "/" + (*ff)->text().substr(p + 1) + " ");
+ }
}
}