Ver código fonte

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.
Guillem Jover 9 anos atrás
pai
commit
45b7b6e794
1 arquivos alterados com 1 adições e 8 exclusões
  1. 1 8
      scripts/dpkg-genbuildinfo.pl

+ 1 - 8
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;