aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/ebuild.cc')
-rw-r--r--paludis/repositories/e/ebuild.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild.cc b/paludis/repositories/e/ebuild.cc
index 2a1fa5c5b..e2863c2bf 100644
--- a/paludis/repositories/e/ebuild.cc
+++ b/paludis/repositories/e/ebuild.cc
@@ -1053,6 +1053,11 @@ WriteVDBEntryCommand::operator() ()
join(params.package_id()->raw_iuse_effective_key()->value()->begin(),
params.package_id()->raw_iuse_effective_key()->value()->end(), " "));
+ if (! params.package_id()->eapi()->supported()->ebuild_metadata_variables()->scm_revision()->name().empty())
+ if (params.package_id()->scm_revision_key())
+ process.setenv(params.package_id()->eapi()->supported()->ebuild_metadata_variables()->scm_revision()->name(),
+ params.package_id()->scm_revision_key()->value());;
+
if (params.maybe_output_manager())
process
.capture_stderr(params.maybe_output_manager()->stderr_stream())
@@ -1294,6 +1299,11 @@ WriteBinaryEbuildCommand::operator() ()
.pipe_command_handler("PALUDIS_PIPE_COMMAND", std::bind(&pipe_command_handler, params.environment(),
params.package_id(), false, _1, params.maybe_output_manager()));
+ if (! params.package_id()->eapi()->supported()->ebuild_metadata_variables()->scm_revision()->name().empty())
+ if (params.package_id()->scm_revision_key())
+ process.setenv(params.package_id()->eapi()->supported()->ebuild_metadata_variables()->scm_revision()->name(),
+ params.package_id()->scm_revision_key()->value());;
+
if (0 != process.run().wait())
throw ActionFailedError("Write binary command failed");
}