[Reproducible-commits] [debhelper] 07/11: dh_genbuildinfo: Add the .buildinfo file to the build products

Jérémy Bobbio lunar at moszumanska.debian.org
Wed Oct 22 19:28:20 UTC 2014


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

lunar pushed a commit to branch pu/reproducible_builds
in repository debhelper.

commit 87a4edc983ba4f74ffb9784df1e3be44c53f1a24
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sun Sep 28 14:22:02 2014 +0200

    dh_genbuildinfo: Add the .buildinfo file to the build products
---
 dh_genbuildinfo | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dh_genbuildinfo b/dh_genbuildinfo
index 48b3cd4..bee4dd1 100755
--- a/dh_genbuildinfo
+++ b/dh_genbuildinfo
@@ -8,6 +8,7 @@ dh_genbuildinfo - generate a .buildinfo file
 
 use strict;
 use Debian::Debhelper::Dh_Lib;
+use Dpkg::Control::Info;
 
 =head1 SYNOPSIS
 
@@ -65,6 +66,15 @@ $gen = "./gen-buildinfo" if $package eq 'debhelper';
 
 complex_doit("$gen > $dh{DESTDIR}/$dh{FILENAME}");
 
+# Add the .buildinfo to the .changes
+
+my $control = Dpkg::Control::Info->new('debian/control');
+my $src_fields = $control->get_source();
+my $section = $src_fields->{Section} || '-';
+my $priority = $src_fields->{Priority} || '-';
+
+complex_doit("dpkg-distaddfile $dh{FILENAME} $section $priority");
+
 exit 0;
 
 =head1 SEE ALSO

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debhelper.git



More information about the Reproducible-commits mailing list