EDSP doc: fix typo in Request stanza description
EDSP: bump protocol version to 0.5
EDSP: add Architecture(s) multi-arch fields to the Request stanza
EDSP: add Source field to Package stanzas
EDSP: add APT-Release field to Package stanzas
show upgradable packages after apt update

Closes: 748389
Implement simple by-hash for apt update

This implements a apt update schema that get the indexfiles by the
hash instead of the name. The rational is that updates to the archive
servers/mirrors are not atomic so the client may have the previous
version of the Release file when the server updates to a new
Release file and new Packages/Sources/Translations indexes. By
keeping the files around by their hash we can still get the previous
indexfile without a hashsum mismatch.

Enable with APT::Acquire::By-Hash=1
add TODO
Add APT::Acquire::$(host)::By-Hash=1 knob, add Acquire-By-Hash to Release file

The by-hash can be configured on a per-hostname basis and a Release
file can indicate that it has by-hash support via a new flag.

The location of the hash now matches the AptByHash spec
move ByHash into its own function
Merge remote-tracking branch 'upstream/debian/sid' into debian/sid
use free() instead of delete() when realloc is used

ContentsExtract::~ContentsExtract() needs to use free() because
Data got allocated via realloc()

Reported-By: clang -fsanitize=address -fno-omit-frame-pointer
Do not try to cast a pkgDepCache::Policy to a pkgCache

Fix incorrect cast in pkgDepCache::Policy::GetCandidateVer()

Reported-By: clang -fsanitize=address -fno-omit-frame-pointer
use free() instead of delete[] in debSrcRecordParser::~debSrcRecordParser

The Buffer was allocated using strndup() so we need to free it using
free() instead of delete[]
Fix uninitialized value

Reported-By: scan-build
Fix warning about uninitialized variable

Reported-By: clang++ -Werror
Fix more warnings from clang

Reported-By: clang++ -Werror
test/integration/test-apt-ftparchive-src-cachedb: make test more robust
cmdline/apt-extracttemplates.cc: remove unused private var

Reported-By: clang -Wall
add hashtable stats