aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-09-25 15:42:39 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-09-25 15:42:39 +0000
commit30b2167c0020918c2112bc03963424b48a64f9d4 (patch)
treecf9b042b640c632031bcfebd8f78b76eabab0fc5
parente8531530a91279e96f39709c79e709950b21860e (diff)
downloadpaludis-30b2167c0020918c2112bc03963424b48a64f9d4.tar.gz
paludis-30b2167c0020918c2112bc03963424b48a64f9d4.tar.xz
More debug info
-rw-r--r--paludis/repositories/portage/portage_repository_profile.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/paludis/repositories/portage/portage_repository_profile.cc b/paludis/repositories/portage/portage_repository_profile.cc
index a770d28..021062e 100644
--- a/paludis/repositories/portage/portage_repository_profile.cc
+++ b/paludis/repositories/portage/portage_repository_profile.cc
@@ -174,6 +174,7 @@ void
Implementation<PortageRepositoryProfile>::load_profile_directory_recursively(const FSEntry & dir)
{
Context context("When adding profile directory '" + stringify(dir) + ":");
+ Log::get_instance()->message(ll_debug, lc_context, "Loading profile directory '" + stringify(dir) + "'");
if (! dir.is_directory())
{
@@ -283,7 +284,11 @@ Implementation<PortageRepositoryProfile>::load_profile_make_defaults(const FSEnt
for (KeyValueConfigFile::Iterator k(file.begin()), k_end(file.end()) ;
k != k_end ; ++k)
+ {
+ Log::get_instance()->message(ll_debug, lc_context, "Profile environment variable '" +
+ stringify(k->first) + "' is '" + stringify(k->second) + "'");
environment_variables[k->first] = k->second;
+ }
}
void
@@ -597,9 +602,16 @@ PortageRepositoryProfile::environment_variable(const std::string & s) const
Implementation<PortageRepositoryProfile>::EnvironmentVariablesMap::const_iterator i(
_imp->environment_variables.find(s));
if (_imp->environment_variables.end() == i)
+ {
+ Log::get_instance()->message(ll_debug, lc_no_context, "Environment variable '" + s + "' is unset");
return "";
+ }
else
+ {
+ Log::get_instance()->message(ll_debug, lc_no_context, "Environment variable '" + s +
+ "' is '" + i->second + "'");
return i->second;
+ }
}
AllDepAtom::Pointer