aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-08-25 16:25:21 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-08-25 16:25:21 +0000
commit194a26263904b9397051959b4a077dabf4474d11 (patch)
tree13caff820d0d676c7e8ae92ab83e3a313fd4bd2b
parent3fc7a8113066823b0fc80e6bb6e4b93df748e035 (diff)
downloadpaludis-194a26263904b9397051959b4a077dabf4474d11.tar.gz
paludis-194a26263904b9397051959b4a077dabf4474d11.tar.xz
Make src_uri_check output a bit more useful
-rw-r--r--paludis/qa/src_uri_check.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/paludis/qa/src_uri_check.cc b/paludis/qa/src_uri_check.cc
index 1698c9a..2a56f21 100644
--- a/paludis/qa/src_uri_check.cc
+++ b/paludis/qa/src_uri_check.cc
@@ -82,8 +82,13 @@ namespace
mirror_host.erase(p);
RepositoryMirrorsInterface * m(env->package_database()->fetch_repository(
env->package_database()->favourite_repository())->mirrors_interface);
- if ((! m) || (! m->is_mirror(mirror_host)))
- result << Message(qal_major, "Unknown mirror for '" + a->text() + "'");
+ if (! m)
+ result << Message(qal_major, "Mirror '" + a->text() + "' used, but repository '"
+ + stringify(env->package_database()->favourite_repository())
+ + "' defines no mirrors interface");
+ else if (! m->is_mirror(mirror_host))
+ result << Message(qal_major, "Unknown mirror '" + mirror_host
+ + "' for '" + a->text() + "'");
}
}
}