From 9e4464914bcc5c896d81f7ca1948f9bfbfb50886 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 13 Sep 2015 17:23:55 +0200 Subject: [PATCH] add --sha512 option + documentation for apt-ftparchive --- doc/apt-ftparchive.1.xml | 12 ++++++++---- ftparchive/apt-ftparchive.cc | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/apt-ftparchive.1.xml b/doc/apt-ftparchive.1.xml index 92016298d..5b2cd83e8 100644 --- a/doc/apt-ftparchive.1.xml +++ b/doc/apt-ftparchive.1.xml @@ -94,8 +94,8 @@ as well as Release and md5sum.txt files by default (APT::FTPArchive::Release::Default-Patterns). Additional filename patterns can be added by listing them in APT::FTPArchive::Release::Patterns. - It then writes to stdout a Release file containing an MD5, SHA1 and SHA256 digest - for each file. + It then writes to stdout a Release file containing (by default) an MD5, + SHA1, SHA256 and SHA512 digest for each file. Values for the additional metadata fields in the Release file are taken from the corresponding variables under @@ -501,7 +501,11 @@ for i in Sections do &apt-cmdblurb; - + + + + + Generate the given checksum. These options default to on, when turned off the generated index files will not have the checksum fields where possible. @@ -509,7 +513,7 @@ for i in Sections do APT::FTPArchive::Index::Checksum where Index can be Packages, Sources or Release and Checksum can be MD5, - SHA1 or SHA256. + SHA1, SHA256 or SHA512. diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc index 6f0fb1ac4..3f2af915b 100644 --- a/ftparchive/apt-ftparchive.cc +++ b/ftparchive/apt-ftparchive.cc @@ -1032,6 +1032,7 @@ int main(int argc, const char *argv[]) {0,"md5","APT::FTPArchive::MD5",0}, {0,"sha1","APT::FTPArchive::SHA1",0}, {0,"sha256","APT::FTPArchive::SHA256",0}, + {0,"sha512","APT::FTPArchive::SHA512",0}, {'v',"version","version",0}, {'d',"db","APT::FTPArchive::DB",CommandLine::HasArg}, {'s',"source-override","APT::FTPArchive::SourceOverride",CommandLine::HasArg}, -- 2.45.2