Procházet zdrojové kódy

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 před 9 roky
rodič
revize
90be667de7
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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;
 
     foreach my $file ($dist->get_files()) {
+        # Make us a bit idempotent.
+        next if $file->{filename} =~ m/\.buildinfo$/;
+
         my $path = "$uploadfilesdir/$file->{filename}";
         $checksums->add_from_file($path, key => $file->{filename});