[dpkg] 69/187: Dpkg::Checksums: Mention that add_from_file is used to verify digests too

Reiner Herrmann reiner at reiner-h.de
Sun Nov 6 12:46:26 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 4570cd64ebdaf8d16a85e718cd700f6bfddbf305
Author: Guillem Jover <guillem at debian.org>
Date:   Mon Aug 15 18:03:44 2016 +0200

    Dpkg::Checksums: Mention that add_from_file is used to verify digests too
    
    Make it explicit in the sub description.
    
    Prompted-by: Johannes Schauer <josch at debian.org>
---
 debian/changelog          | 2 ++
 scripts/Dpkg/Checksums.pm | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 85029e4..2e6238e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -64,6 +64,8 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
       poorly on many technical terms.
     - Append the German man pages addendum at the end of the translation,
       instead of assuming that every page has the SEE ALSO section.
+    - Explicitly mention that Dpkg::Checksums::add_from_file() is used to
+      verify digests too. Prompted by Johannes Schauer <josch at debian.org>.
   * Build system:
     - Add support for profiling perl modules.
     - Clean up compiler and linker automatic flag usage in configure.
diff --git a/scripts/Dpkg/Checksums.pm b/scripts/Dpkg/Checksums.pm
index 208f477..1237e8b 100644
--- a/scripts/Dpkg/Checksums.pm
+++ b/scripts/Dpkg/Checksums.pm
@@ -155,9 +155,9 @@ sub reset {
 
 =item $ck->add_from_file($filename, %opts)
 
-Add checksums information for the file $filename. The file must exists
-for the call to succeed. If you don't want the given filename to appear
-when you later export the checksums you might want to set the "key"
+Add or verify checksums information for the file $filename. The file must
+exists for the call to succeed. If you don't want the given filename to
+appear when you later export the checksums you might want to set the "key"
 option with the public name that you want to use. Also if you don't want
 to generate all the checksums, you can pass an array reference of the
 wanted checksums in the "checksums" option.

-- 
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