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

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=54305ee3803de9fe495d1126bab2d78ea0cd233b

commit 54305ee3803de9fe495d1126bab2d78ea0cd233b
Author: Guillem Jover <[email protected]>
AuthorDate: Sat Jun 18 20:32:49 2022 +0200

    dpkg-genbuildinfo: Refactor build-tainted-by gathering into a function
    
    We will populate it with other local taint flags.
---
 scripts/dpkg-genbuildinfo.pl | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/scripts/dpkg-genbuildinfo.pl b/scripts/dpkg-genbuildinfo.pl
index fc1ec388d..29d6c3a8c 100755
--- a/scripts/dpkg-genbuildinfo.pl
+++ b/scripts/dpkg-genbuildinfo.pl
@@ -247,6 +247,12 @@ sub collect_installed_builddeps {
     return $installed_deps;
 }
 
+sub get_build_tainted_by {
+    my @tainted = run_vendor_hook('build-tainted-by');
+
+    return @tainted;
+}
+
 sub cleansed_environment {
     # Consider only allowed variables which are not supposed to leak
     # local user information.
@@ -447,7 +453,7 @@ if ($use_feature{path}) {
     }
 }
 
-$fields->{'Build-Tainted-By'} = "\n" . join "\n", 
run_vendor_hook('build-tainted-by');
+$fields->{'Build-Tainted-By'} = "\n" . join "\n", get_build_tainted_by();
 
 $checksums->export_to_control($fields);
 

-- 
Dpkg.Org's dpkg

Reply via email to