aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/do_info_action.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/do_info_action.cc')
-rw-r--r--paludis/repositories/e/do_info_action.cc24
1 files changed, 14 insertions, 10 deletions
diff --git a/paludis/repositories/e/do_info_action.cc b/paludis/repositories/e/do_info_action.cc
index ea864287a..375599e9f 100644
--- a/paludis/repositories/e/do_info_action.cc
+++ b/paludis/repositories/e/do_info_action.cc
@@ -87,24 +87,28 @@ paludis::erepository::do_info_action(
if (phase->option("installed=true"))
continue;
+ const auto params = repo->params();
+ const auto profile = repo->profile();
+
EbuildCommandParams command_params(make_named_values<EbuildCommandParams>(
- n::builddir() = repo->params().builddir(),
+ n::builddir() = params.builddir(),
n::clearenv() = phase->option("clearenv"),
n::commands() = join(phase->begin_commands(), phase->end_commands(), " "),
- n::distdir() = repo->params().distdir(),
+ n::distdir() = params.distdir(),
n::ebuild_dir() = repo->layout()->package_directory(id->name()),
n::ebuild_file() = id->fs_location_key()->parse_value(),
- n::eclassdirs() = repo->params().eclassdirs(),
+ n::eclassdirs() = params.eclassdirs(),
n::environment() = env,
n::exlibsdirs() = exlibsdirs,
n::files_dir() = repo->layout()->package_directory(id->name()) / "files",
n::maybe_output_manager() = output_manager,
- n::package_builddir() = repo->params().builddir() / (stringify(id->name().category()) + "-" + stringify(id->name().package()) + "-" + stringify(id->version()) + "-info"),
+ n::package_builddir() = params.builddir() / (stringify(id->name().category()) + "-" + stringify(id->name().package()) + "-" + stringify(id->version()) + "-info"),
n::package_id() = id,
n::permitted_directories() = make_null_shared_ptr(),
n::portdir() =
- (repo->params().master_repositories() && ! repo->params().master_repositories()->empty()) ?
- (*repo->params().master_repositories()->begin())->params().location() : repo->params().location(),
+ (params.master_repositories() && ! params.master_repositories()->empty())
+ ? (*params.master_repositories()->begin())->params().location()
+ : params.location(),
n::root() = stringify(env->preferred_root_key()->parse_value()),
n::sandbox() = phase->option("sandbox"),
n::sydbox() = phase->option("sydbox"),
@@ -117,12 +121,12 @@ paludis::erepository::do_info_action(
n::info_vars() = repo->info_vars_key() ?
repo->info_vars_key()->parse_value() : std::make_shared<const Set<std::string>>(),
n::load_environment() = static_cast<const FSPath *>(0),
- n::profiles() = repo->params().profiles(),
- n::profiles_with_parents() = repo->profile()->profiles_with_parents(),
+ n::profiles() = params.profiles(),
+ n::profiles_with_parents() = profile->profiles_with_parents(),
n::use() = use,
n::use_ebuild_file() = true,
- n::use_expand() = join(repo->profile()->use_expand()->begin(), repo->profile()->use_expand()->end(), " "),
- n::use_expand_hidden() = join(repo->profile()->use_expand_hidden()->begin(), repo->profile()->use_expand_hidden()->end(), " ")
+ n::use_expand() = join(profile->use_expand()->begin(), profile->use_expand()->end(), " "),
+ n::use_expand_hidden() = join(profile->use_expand_hidden()->begin(), profile->use_expand_hidden()->end(), " ")
));
EbuildInfoCommand cmd(command_params, info_params);