From ee8975322f93e41ccd5787ebb6cadaecc81cadf3 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 1 Nov 2016 06:21:18 +0100 Subject: scripts: Add support for .buildinfo files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The .buildinfo files are a new type of control files, similar to the .changes files, meant to describe the environment of a build and its artifacts. They are meant to be added to the Debian archive to allow independent parties to reproduce a build and verify the result. Specifications for .buildinfo are available at: This patch adds support for .buildinfo files in Dpkg::Control, adds new .buildinfo fields to Dpkg::Control::Fields, a new builtin-system-build-paths Dpkg::Vendor hook, and adds a new script named dpkg-genbuildinfo, that will now be called by dpkg-buildpackage before generating the .changes file. [ntyni@debian.org: small changes. ] Closes: #138409 Based-on-patch-by: Jérémy Bobbio Signed-off-by: Guillem Jover --- scripts/Test/Dpkg.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/Test') diff --git a/scripts/Test/Dpkg.pm b/scripts/Test/Dpkg.pm index e0395dec6..5dc8732c0 100644 --- a/scripts/Test/Dpkg.pm +++ b/scripts/Test/Dpkg.pm @@ -111,6 +111,7 @@ sub test_neutralize_checksums open my $fh, '<', $filename or die; while (<$fh>) { s/^ ([0-9a-f]{32,}) [1-9][0-9]* /q{ } . $1 =~ tr{0-9a-f}{0}r . q{ 0 }/e; + s/^( 0{32,} 0(?: [\w]* [\w]*)? [^_]*_[^_]*)_[^.]*\.(buildinfo)$/$1_20160101T123000z-00000000.$2/; print { $fhnew } $_; } close $fh or die; -- cgit v1.2.3