This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=912c55f05c61ff65daf3c583f15749cf1237bdeb commit 912c55f05c61ff65daf3c583f15749cf1237bdeb (HEAD -> main) Author: Guillem Jover <[email protected]> AuthorDate: Tue Jan 31 00:12:24 2023 +0100 dpkg-gensymbols: Use File::Compare instead of Digest::MD5 This was a very convoluted way to check whether the files have the same contents. Changelog: internal --- scripts/dpkg-gensymbols.pl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/dpkg-gensymbols.pl b/scripts/dpkg-gensymbols.pl index 8811d5f1a..7f3b3c1cc 100755 --- a/scripts/dpkg-gensymbols.pl +++ b/scripts/dpkg-gensymbols.pl @@ -289,7 +289,7 @@ if ($compare || ! $quiet) { unless ($quiet) { require File::Temp; - require Digest::MD5; + require File::Compare; my $file_label; @@ -306,12 +306,9 @@ unless ($quiet) { seek $before, 0, 0; seek $after, 0, 0; - my ($md5_before, $md5_after) = (Digest::MD5->new(), Digest::MD5->new()); - $md5_before->addfile($before); - $md5_after->addfile($after); # Output diffs between symbols files if any - if ($md5_before->hexdigest() ne $md5_after->hexdigest()) { + if (File::Compare::compare($before, $after) != 0) { if (not defined($output)) { warning(g_('the generated symbols file is empty')); } elsif (defined($ref_symfile->{file})) { -- Dpkg.Org's dpkg

