[Reproducible-commits] [dpkg] 60/63: dpkg-genbuildinfo: Add support for build profiles

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Mar 4 17:44:46 UTC 2016


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

lunar pushed a commit to branch pu/buildinfo
in repository dpkg.

commit a8020b581de0c1154c56f3a0f81da0895d15aa53
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sat Jan 30 16:09:27 2016 +0000

    dpkg-genbuildinfo: Add support for build profiles
---
 scripts/dpkg-genbuildinfo.pl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/dpkg-genbuildinfo.pl b/scripts/dpkg-genbuildinfo.pl
index 4787d10..7e9fa32 100755
--- a/scripts/dpkg-genbuildinfo.pl
+++ b/scripts/dpkg-genbuildinfo.pl
@@ -33,6 +33,7 @@ use Dpkg::Gettext;
 use Dpkg::Checksums;
 use Dpkg::ErrorHandling;
 use Dpkg::Arch qw(get_build_arch);
+use Dpkg::BuildProfiles qw(get_build_profiles);
 use Dpkg::Control::Info;
 use Dpkg::Control::Fields;
 use Dpkg::Control;
@@ -51,6 +52,7 @@ my $fileslistfile = 'debian/files';
 my $uploadfilesdir = '..';
 my $admindir = $Dpkg::ADMINDIR;
 my $always_include_path = 0;
+my @build_profiles = get_build_profiles();
 my $buildinfo_format = '1.0';
 
 my $checksums = Dpkg::Checksums->new();
@@ -136,7 +138,8 @@ sub append_deps {
 
     foreach my $dep_str (@_) {
         next unless $dep_str;
-        $deps = deps_parse($dep_str, reduce_restrictions => 1, build_dep => 1);
+        $deps = deps_parse($dep_str, reduce_restrictions => 1,
+                           build_dep => 1, build_profiles => \@build_profiles);
         # add packages as unseen if they were not there before
         deps_iterate($deps, sub { push @{$pkgs}, $_[0]->{package}; 1 });
     }

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



More information about the Reproducible-commits mailing list