[tbb-commits] [builders/rbm] 05/06: Bug 40028: Remove p variable from templates

gitolite role git at cupani.torproject.org
Fri Jul 1 09:33:03 UTC 2022


This is an automated email from the git hooks/post-receive script.

gk pushed a commit to branch master
in repository builders/rbm.

commit 3f930c1dddee914f78817259f3eab113c698efc3
Author: Nicolas Vigier <boklm at torproject.org>
AuthorDate: Wed Jun 29 14:06:29 2022 +0200

    Bug 40028: Remove p variable from templates
    
    In templates, the `p` variable allowed to access the current project's
    rbm config. With the support for projects in modules, it would need to
    be adapted. However we never used this variable in tor-browser-build,
    and it is not very useful (it's usually better to use c() to access
    config), so we remove it.
---
 doc/rbm_templates.asc | 4 ----
 lib/RBM.pm            | 1 -
 2 files changed, 5 deletions(-)

diff --git a/doc/rbm_templates.asc b/doc/rbm_templates.asc
index 200043f..41be18d 100644
--- a/doc/rbm_templates.asc
+++ b/doc/rbm_templates.asc
@@ -89,10 +89,6 @@ pc::
 project::
         The name of the project for which we are processing a template.
 
-p::
-        The project's configuration. This is a shortcut for the value
-        of `config.projects.$project`.
-
 dest_dir::
         The destination directory, where the resulting files will be
         stored at the end of the build. This is mainly useful in build
diff --git a/lib/RBM.pm b/lib/RBM.pm
index afbe003..88679f2 100644
--- a/lib/RBM.pm
+++ b/lib/RBM.pm
@@ -692,7 +692,6 @@ sub process_template {
     my $vars = {
         config     => $config,
         project    => $project,
-        p          => $config->{projects}{$project},
         c          => sub { project_config($project, @_) },
         pc         => sub {
             my @args = @_;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list