[dpkg] 162/187: dpkg-genbuildinfo: Filter .buildinfo files from checksums inclusion

Reiner Herrmann reiner at reiner-h.de
Sun Nov 6 12:46:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

deki-guest pushed a commit to branch master
in repository dpkg.

commit 90be667de7c9f54631579f0ec55b62a6b6a3a24f
Author: Guillem Jover <guillem at debian.org>
Date:   Thu Nov 3 23:42:42 2016 +0100

    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.
---
 scripts/dpkg-genbuildinfo.pl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/dpkg-genbuildinfo.pl b/scripts/dpkg-genbuildinfo.pl
index b183aa5..fcab703 100755
--- a/scripts/dpkg-genbuildinfo.pl
+++ b/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});
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list