aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-11-03 16:13:59 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-11-03 16:13:59 +0000
commit7266a8d92a19ae49bf54857690b641f17ed69e5e (patch)
treee7416ad05bd66748fe9eac28de05e416f7b6ca26
parent4edc4bb3c61d0d0666615cff512c7b7a038a8ac4 (diff)
downloadpaludis-7266a8d92a19ae49bf54857690b641f17ed69e5e.tar.gz
paludis-7266a8d92a19ae49bf54857690b641f17ed69e5e.tar.xz
Hide deprecation warnings for all NoConfigEnvironment clients, not just qualudis.
-rw-r--r--paludis/environments/no_config/no_config_environment.cc2
-rw-r--r--src/clients/qualudis/qualudis.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/paludis/environments/no_config/no_config_environment.cc b/paludis/environments/no_config/no_config_environment.cc
index 278eb31..7e6f688 100644
--- a/paludis/environments/no_config/no_config_environment.cc
+++ b/paludis/environments/no_config/no_config_environment.cc
@@ -154,6 +154,7 @@ Implementation<NoConfigEnvironment>::initialise(NoConfigEnvironment * const env)
keys->insert("format", "ebuild");
keys->insert("location", stringify(params.master_repository_dir));
keys->insert("profiles", "/var/empty");
+ keys->insert("ignore_deprecated_profiles", "true");
keys->insert("write_cache", stringify(params.write_cache));
keys->insert("names_cache", "/var/empty");
if (params.disable_metadata_cache)
@@ -171,6 +172,7 @@ Implementation<NoConfigEnvironment>::initialise(NoConfigEnvironment * const env)
keys->insert("format", "ebuild");
keys->insert("location", stringify(params.repository_dir));
keys->insert("profiles", "/var/empty");
+ keys->insert("ignore_deprecated_profiles", "true");
keys->insert("write_cache", stringify(params.write_cache));
keys->insert("names_cache", "/var/empty");
diff --git a/src/clients/qualudis/qualudis.cc b/src/clients/qualudis/qualudis.cc
index d0d3fc2..c93e52a 100644
--- a/src/clients/qualudis/qualudis.cc
+++ b/src/clients/qualudis/qualudis.cc
@@ -269,8 +269,6 @@ int main(int argc, char *argv[])
if (! QualudisCommandLine::get_instance()->a_master_repository_dir.specified())
QualudisCommandLine::get_instance()->a_master_repository_dir.set_argument("/var/empty");
- tr1::shared_ptr<Map<std::string, std::string> > extra(new Map<std::string, std::string>);
- extra->insert("ignore_deprecated_profiles", "true");
tr1::shared_ptr<NoConfigEnvironment> env(new NoConfigEnvironment(no_config_environment::Params::create()
.repository_dir(FSEntry::cwd())
.write_cache(QualudisCommandLine::get_instance()->a_write_cache_dir.argument())
@@ -278,7 +276,7 @@ int main(int argc, char *argv[])
.repository_type(no_config_environment::ncer_ebuild)
.master_repository_dir(QualudisCommandLine::get_instance()->a_master_repository_dir.argument())
.disable_metadata_cache(! QualudisCommandLine::get_instance()->a_use_repository_cache.specified())
- .extra_params(extra)
+ .extra_params(tr1::shared_ptr<Map<std::string, std::string> >())
));
if (! env->main_repository()->qa_interface)