aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-01 15:12:41 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-01 15:12:41 +0000
commit59518fcf2a053c9440c93a51c9a99f1983c4fa86 (patch)
tree5358e1adfa802fd077d5596ee68644d7e4798091
parent4419abbd49a0981feab17c7464a32cd9b15822d6 (diff)
downloadpaludis-59518fcf2a053c9440c93a51c9a99f1983c4fa86.tar.gz
paludis-59518fcf2a053c9440c93a51c9a99f1983c4fa86.tar.xz
Show generated repository names
-rw-r--r--paludis/repositories/gentoo/portage_repository.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/paludis/repositories/gentoo/portage_repository.cc b/paludis/repositories/gentoo/portage_repository.cc
index d3723fe..01ba59b 100644
--- a/paludis/repositories/gentoo/portage_repository.cc
+++ b/paludis/repositories/gentoo/portage_repository.cc
@@ -617,12 +617,14 @@ PortageRepository::fetch_repo_name(const std::string & location)
catch (...)
{
}
- Log::get_instance()->message(ll_qa, lc_no_context, "Couldn't open repo_name file in '"
- + location + "/profiles/', falling back to a generated name (ignore this message if "
- "you have yet to sync this repository).");
std::string modified_location(FSEntry(location).basename());
std::replace(modified_location.begin(), modified_location.end(), '/', '-');
+
+ Log::get_instance()->message(ll_qa, lc_no_context, "Couldn't open repo_name file in '"
+ + location + "/profiles/', falling back to generated name 'x-" + modified_location +
+ "' (ignore this message if you have yet to sync this repository).");
+
return RepositoryName("x-" + modified_location);
}