aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Stephen P. Bennett <spb@exherbo.org> 2006-10-10 15:31:31 +0000
committerAvatar Stephen P. Bennett <spb@exherbo.org> 2006-10-10 15:31:31 +0000
commit250bfb1028681e16d12608ae4301dff111de14e8 (patch)
treeaacb62b72543772d194fe0da9054eedcd2fdc81c
parent8903c8f020df3fc55ee1914ee86145b93d57a812 (diff)
downloadpaludis-250bfb1028681e16d12608ae4301dff111de14e8.tar.gz
paludis-250bfb1028681e16d12608ae4301dff111de14e8.tar.xz
Allow mirrors.conf to work when thirdpartymirrors doesn't exist in the repo
-rw-r--r--paludis/repositories/portage/portage_repository_ebuild_entries.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/paludis/repositories/portage/portage_repository_ebuild_entries.cc b/paludis/repositories/portage/portage_repository_ebuild_entries.cc
index a8cbdb3..a80398c 100644
--- a/paludis/repositories/portage/portage_repository_ebuild_entries.cc
+++ b/paludis/repositories/portage/portage_repository_ebuild_entries.cc
@@ -315,8 +315,10 @@ PortageRepositoryEbuildEntries::install(const QualifiedPackageName & q, const Ve
throw PackageInstallActionError("Can't install '" + stringify(q) + "-"
+ stringify(v) + "' since SRC_URI is broken");
- if (! _imp->portage_repository->is_mirror(mirror.substr(0, spos)))
- throw PackageInstallActionError("Can't install '" + stringify(spos) + "-"
+ if (! _imp->portage_repository->is_mirror(mirror.substr(0, spos)) &&
+ _imp->params.environment->begin_mirrors(mirror.substr(0, spos)) ==
+ _imp->params.environment->end_mirrors(mirror.substr(0, spos)))
+ throw PackageInstallActionError("Can't install '" + stringify(q) + "-"
+ stringify(v) + "' since SRC_URI references unknown mirror:// '" +
mirror.substr(0, spos) + "'");