aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2008-06-12 09:42:05 +0000
committerAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2008-06-14 12:37:55 +0000
commit4be433c7f0e6b6e9f99e19c27625bbf71670bb1f (patch)
tree7f855aa975efb31b180ab4681bfea09f4d8d9a3b
parentcd5134be0c87d7682a3c3dae4940a07bf0ecb4c6 (diff)
downloadpaludis-4be433c7f0e6b6e9f99e19c27625bbf71670bb1f.tar.gz
paludis-4be433c7f0e6b6e9f99e19c27625bbf71670bb1f.tar.xz
Fix REWRITE_VAR
-rw-r--r--paludis/repositories/e/pipe_command_handler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/repositories/e/pipe_command_handler.cc b/paludis/repositories/e/pipe_command_handler.cc
index 770978c..9b70f9f 100644
--- a/paludis/repositories/e/pipe_command_handler.cc
+++ b/paludis/repositories/e/pipe_command_handler.cc
@@ -227,7 +227,7 @@ paludis::erepository::pipe_command_handler(const Environment * const environment
}
else if (tokens[0] == "REWRITE_VAR")
{
- if (tokens.size() < 4)
+ if (tokens.size() < 5)
{
Log::get_instance()->message("e.pipe_commands.rewrite_var.bad", ll_warning, lc_context) << "Got bad REWRITE_VAR pipe command";
return "Ebad REWRITE_VAR command";
@@ -237,7 +237,7 @@ paludis::erepository::pipe_command_handler(const Environment * const environment
if (! (*eapi)[k::supported()])
return "EREWRITE_VAR EAPI " + tokens[1] + " unsupported";
- std::string var(tokens[2]);
+ std::string var(tokens[3]);
if ((var == (*(*eapi)[k::supported()])[k::ebuild_metadata_variables()].metadata_build_depend) ||
(var == (*(*eapi)[k::supported()])[k::ebuild_metadata_variables()].metadata_run_depend) ||