summaryrefslogtreecommitdiff
path: root/scripts/dpkg-genbuildinfo.pl
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-11-03 23:35:33 +0100
committerGuillem Jover <guillem@debian.org>2016-11-03 23:49:31 +0100
commit45b7b6e794d066f027d977b4d59c1f3a7c6534c8 (patch)
tree405702148e07d2a53d8bc5a11b5d1422065e64fc /scripts/dpkg-genbuildinfo.pl
parentee8975322f93e41ccd5787ebb6cadaecc81cadf3 (diff)
downloaddpkg-45b7b6e794d066f027d977b4d59c1f3a7c6534c8.tar.gz
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.
Diffstat (limited to 'scripts/dpkg-genbuildinfo.pl')
-rwxr-xr-xscripts/dpkg-genbuildinfo.pl9
1 files changed, 1 insertions, 8 deletions
diff --git a/scripts/dpkg-genbuildinfo.pl b/scripts/dpkg-genbuildinfo.pl
index cbb052327..18c032680 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;