소스 검색

dpkg-genbuildinfo: Filter .buildinfo files from checksums inclusion

This makes the script slightly more idempotent by filtering the only
file it generates and registers itself.
Guillem Jover 9 년 전
부모
커밋
90be667de7
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      scripts/dpkg-genbuildinfo.pl

+ 3 - 0
scripts/dpkg-genbuildinfo.pl

@@ -375,6 +375,9 @@ if (build_has_any(BUILD_BINARY)) {
         if $dist_count == 0;
         if $dist_count == 0;
 
 
     foreach my $file ($dist->get_files()) {
     foreach my $file ($dist->get_files()) {
+        # Make us a bit idempotent.
+        next if $file->{filename} =~ m/\.buildinfo$/;
+
         my $path = "$uploadfilesdir/$file->{filename}";
         my $path = "$uploadfilesdir/$file->{filename}";
         $checksums->add_from_file($path, key => $file->{filename});
         $checksums->add_from_file($path, key => $file->{filename});