diff options
author | Guillem Jover <guillem@debian.org> | 2016-11-03 23:35:33 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-11-03 23:49:31 +0100 |
commit | 45b7b6e794d066f027d977b4d59c1f3a7c6534c8 (patch) | |
tree | 405702148e07d2a53d8bc5a11b5d1422065e64fc /scripts/dpkg-genbuildinfo.pl | |
parent | ee8975322f93e41ccd5787ebb6cadaecc81cadf3 (diff) | |
download | dpkg-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-x | scripts/dpkg-genbuildinfo.pl | 9 |
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; |