]> git.saurik.com Git - apt.git/commitdiff
add --sha512 option + documentation for apt-ftparchive
authorDavid Kalnischkies <david@kalnischkies.de>
Sun, 13 Sep 2015 15:23:55 +0000 (17:23 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 14 Sep 2015 13:22:19 +0000 (15:22 +0200)
doc/apt-ftparchive.1.xml
ftparchive/apt-ftparchive.cc

index 92016298d1d01bb2ce02568057058b92a3681be4..5b2cd83e8421d1fe14e27a99c4de205d635dbcf3 100644 (file)
@@ -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>
index 6f0fb1ac442b77577569e6bd1b316a0b53665d42..3f2af915b14380b6baedc8ebae7293980c528840 100644 (file)
@@ -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},