Преглед на файлове

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;
 
     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});