aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Daniel Mierswa <impulze@impulze.org> 2008-09-03 19:34:40 +0200
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-09-03 19:34:44 +0100
commit2434d448da9cb7ffb7ab836de8805201b7de7a50 (patch)
tree94edd3109b29cf10312d1c81490bb542cdf16c9b
parentb34bc4e363d0e5b5625eb4df029842b1efd25974 (diff)
downloadpaludis-2434d448da9cb7ffb7ab836de8805201b7de7a50.tar.gz
paludis-2434d448da9cb7ffb7ab836de8805201b7de7a50.tar.xz
oops too :P
-rw-r--r--paludis/environments/paludis/paludis_config.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/environments/paludis/paludis_config.cc b/paludis/environments/paludis/paludis_config.cc
index 1f4cc63..1b909cd 100644
--- a/paludis/environments/paludis/paludis_config.cc
+++ b/paludis/environments/paludis/paludis_config.cc
@@ -374,11 +374,11 @@ PaludisConfig::PaludisConfig(PaludisEnvironment * const e, const std::string & s
local_config_dir = (FSEntry(SYSCONFDIR) / ("paludis" + local_config_suffix));
}
- if (_imp->commandline_environment->end() != _imp->commandline_environment->find("root"))
+ if (_imp->commandline_environment->end() == _imp->commandline_environment->find("root"))
{
if (! local_config_dir.exists())
throw PaludisConfigNoDirectoryError("Can't find configuration directory (tried '"
- + stringify(old_config_dir) + "', '" + stringify(local_config_dir) + "')");
+ + stringify(old_config_dir) + "', '" + stringify(local_config_dir) + "')");
Log::get_instance()->message("paludis_environment.paludis_config.initial_dir", ll_debug, lc_no_context)
<< "PaludisConfig initial directory is '" << local_config_dir << "'";