Implement CacheDB for source packages in apt-ftparchive
add test for binary cachedb and contents generation
refactor to make OpenFile/OpenDebFile more robust
ensure clean works
refactor _InitQuery()
ensure "--db" also works with the new srcpkgdb
initialize Verify in second pkgAcqIndex constructor

gcc reports in testcase ./test-bug-596498-trusted-unsigned-repo:
apt-pkg/acquire-item.cc:1059:7: runtime error: load of value 234, which
is not a valid value for type 'bool'

This happens as the bool Verify is initialized only in one of the two
constructors of the pkgAcqIndex class. It isn't a problem through as the
verification controlled by this flag is optional and used to fail early
on garbage files (like network portal pages) instead of later on in the
hashsum verification or while parsing (the then untrusted) file.

Reported-By: gcc-4.9 -fsanitize=undefined
Revert "add bash completion for the "apt" command"

This reverts commit 697c9314c8ba24f3e393b5de11a3fad7adae4bfc.

Conflicts:
	debian/rules
prepare release 1.0.3
Merge remote-tracking branch 'donkult/debian/sid' into debian/sid
Merge remote-tracking branch 'mvo/feature/apt-ftparchive-srccache2' into debian/sid
show progress in run-tests
fix regression from commit 215b0faf
Merge remote-tracking branch 'mvo/feature/apt-ftparchive-srccache2' into debian/sid
Never parse Version/Architecture tags in a Translation-$lang file

Version/Architecture information in a Translation-$lang file is
not allowed, so don't try to parse it. This is a fix for a bugreport
where a Translation-en file contained the content of the regular
Packages file (probably due to local FS corruption). This lead to
strange error messages on file download.

Thanks to Thomas Reusch for the report.
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