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

Jérémy Bobbio lunar at moszumanska.debian.org
Sun Sep 28 15:36:49 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 599852a2874b7534b89c81ebd20aa0d1a41c4179
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..327eded 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