diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-09-13 17:23:55 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-09-14 15:22:19 +0200 |
commit | 9e4464914bcc5c896d81f7ca1948f9bfbfb50886 (patch) | |
tree | ac26e6a52fe281e6967e5d35a7767409ec88dae8 | |
parent | 2cc48828ea1a0ca0a0729c403abc9d7b25945880 (diff) |
add --sha512 option + documentation for apt-ftparchive
-rw-r--r-- | doc/apt-ftparchive.1.xml | 12 | ||||
-rw-r--r-- | 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 <filename>Release</filename> and <filename>md5sum.txt</filename> files by default (<literal>APT::FTPArchive::Release::Default-Patterns</literal>). Additional filename patterns can be added by listing them in <literal>APT::FTPArchive::Release::Patterns</literal>. - It then writes to stdout a <filename>Release</filename> file containing an MD5, SHA1 and SHA256 digest - for each file.</para> + It then writes to stdout a <filename>Release</filename> file containing (by default) an MD5, + SHA1, SHA256 and SHA512 digest for each file.</para> <para> 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; <variablelist> - <varlistentry><term><option>--md5</option></term><term><option>--sha1</option></term><term><option>--sha256</option></term> + <varlistentry> + <term><option>--md5</option></term> + <term><option>--sha1</option></term> + <term><option>--sha256</option></term> + <term><option>--sha512</option></term> <listitem><para> 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 <literal>APT::FTPArchive::<replaceable>Index</replaceable>::<replaceable>Checksum</replaceable></literal> where <literal><replaceable>Index</replaceable></literal> can be <literal>Packages</literal>, <literal>Sources</literal> or <literal>Release</literal> and <literal><replaceable>Checksum</replaceable></literal> can be <literal>MD5</literal>, - <literal>SHA1</literal> or <literal>SHA256</literal>.</para></listitem> + <literal>SHA1</literal>, <literal>SHA256</literal> or <literal>SHA512</literal>.</para></listitem> </varlistentry> <varlistentry><term><option>-d</option></term><term><option>--db</option></term> 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}, |