aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-02 14:00:22 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-02 14:00:22 +0000
commita30c8c3cff644578dbcaec2a7dc0f2efe3368643 (patch)
treed465a0ce5d568bf65091e1796c432e8ee0074d68
parent801487e0fcc62a3b81317b7ff7b51406fa0b05e1 (diff)
downloadpaludis-a30c8c3cff644578dbcaec2a7dc0f2efe3368643.tar.gz
paludis-a30c8c3cff644578dbcaec2a7dc0f2efe3368643.tar.xz
fix
-rw-r--r--paludis/environments/paludis/paludis_environment.cc17
1 files changed, 10 insertions, 7 deletions
diff --git a/paludis/environments/paludis/paludis_environment.cc b/paludis/environments/paludis/paludis_environment.cc
index 3b41af3..36a3a8f 100644
--- a/paludis/environments/paludis/paludis_environment.cc
+++ b/paludis/environments/paludis/paludis_environment.cc
@@ -72,13 +72,16 @@ PaludisEnvironment::PaludisEnvironment(const std::string & s) :
std::string keys;
if (Log::get_instance()->log_level() <= ll_debug)
{
- for (AssociativeCollection<std::string, std::string>::Iterator
- i(r->keys->begin()), i_end(r->keys->end()) ; i != i_end ; ++i)
- {
- if (! keys.empty())
- keys.append(", ");
- keys.append("'" + i->first + "'='" + i->second + "'");
- }
+ if (r->keys)
+ for (AssociativeCollection<std::string, std::string>::Iterator
+ i(r->keys->begin()), i_end(r->keys->end()) ; i != i_end ; ++i)
+ {
+ if (! keys.empty())
+ keys.append(", ");
+ keys.append("'" + i->first + "'='" + i->second + "'");
+ }
+ else
+ keys = "empty";
Log::get_instance()->message(ll_debug, lc_context,
"Creating repository with format='" + r->format + "', importance='"