Files
aptly/deb
André Roth bb2db7e500 Support Acquire-By-Hash for index files
The added "aptly publish repo" option "-access-by-hash" publishes
the index files (Packages*, Sources*) also as hardlinked hashes.
Example:
 /dists/yakkety/main/binary-amd64/by-hash/SHA512/31833ec39acc...
The Release files indicate this with the option "Acquire-By-Hash: yes"

This is used by apt >= 1.2.0 and prevents the "Hash sum mismatch" race
condition between a server side "aptly publish repo" and "apt-get update"
on a client.
See: http://www.chiark.greenend.org.uk/~cjwatson/blog/no-more-hash-sum-mismatch-errors.html

This implementation uses symlinks in the by-hash/*/ directory for keeping
only two versions of the index files and deleting older files
automatically.

Note: this only works with aptly.FileSystemPublishedStorage

Closes: #536

Signed-off-by: André Roth <neolynx@gmail.com>
2017-11-30 09:46:02 +01:00
..
2017-03-23 01:51:08 +03:00
2014-11-05 13:27:15 -06:00
2014-04-08 01:04:01 +04:00
2017-05-17 00:53:10 +03:00
2015-03-30 19:56:53 +03:00
2017-03-23 01:51:08 +03:00
2015-02-22 14:29:09 +03:00
2017-03-23 01:51:08 +03:00
2017-07-05 00:36:48 +03:00
2017-11-27 11:08:31 +01:00
2017-05-23 02:54:56 +03:00
2017-05-23 02:54:56 +03:00