[dpkg] 160/187: dpkg-genbuildinfo: For source builds always assume the .dsc is present

Reiner Herrmann reiner at reiner-h.de
Sun Nov 6 12:46:40 UTC 2016


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

deki-guest pushed a commit to branch master
in repository dpkg.

commit 45b7b6e794d066f027d977b4d59c1f3a7c6534c8
Author: Guillem Jover <guillem at debian.org>
Date:   Thu Nov 3 23:35:33 2016 +0100

    dpkg-genbuildinfo: For source builds always assume the .dsc is present
    
    If we are doing a source build, we should just expect the source to be
    available, and fail otherwise, instead of just emitting a warning.
---
 scripts/dpkg-genbuildinfo.pl | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/scripts/dpkg-genbuildinfo.pl b/scripts/dpkg-genbuildinfo.pl
index cbb0523..18c0326 100755
--- a/scripts/dpkg-genbuildinfo.pl
+++ b/scripts/dpkg-genbuildinfo.pl
@@ -362,15 +362,8 @@ my $spackage = $changelog->{'Source'};
 
 if (build_has_any(BUILD_SOURCE)) {
     my $dsc = "${spackage}_${sversion}.dsc";
-    my $dsc_pathname = "$uploadfilesdir/$dsc";
 
-    if (-e $dsc_pathname) {
-        $checksums->add_from_file($dsc_pathname, key => $dsc);
-        push @archvalues, 'source';
-    } else {
-        warning(g_('no .dsc file found: the resulting .buildinfo will not be ' .
-                   'usable to verify the provenance of the binaries.'));
-    }
+    $checksums->add_from_file("$uploadfilesdir/$dsc", key => $dsc);
 }
 
 my $dist_count = 0;

-- 
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