"apt-ftparchive release" will create the by-hash files if
this mode is enabled. This maybe unexpected by existing users
so make it a opt-in.
Git-Dch: ignore
Fields["Architectures"] = "";
Fields["Components"] = "";
Fields["Description"] = "";
Fields["Architectures"] = "";
Fields["Components"] = "";
Fields["Description"] = "";
- if (_config->FindB("APT::FTPArchive::DoByHash", true) == true)
+ if (_config->FindB("APT::FTPArchive::DoByHash", false) == true)
Fields["Acquire-By-Hash"] = "true";
for(map<string,string>::const_iterator I = Fields.begin();
Fields["Acquire-By-Hash"] = "true";
for(map<string,string>::const_iterator I = Fields.begin();
// FIXME: wrong layer in the code(?)
// FIXME2: symlink instead of create a copy
// FIXME: wrong layer in the code(?)
// FIXME2: symlink instead of create a copy
- if (_config->FindB("APT::FTPArchive::DoByHash", true) == true)
+ if (_config->FindB("APT::FTPArchive::DoByHash", false) == true)
{
std::string Input = FileName;
HashStringList hsl = hs.GetHashStringList();
{
std::string Input = FileName;
HashStringList hsl = hs.GetHashStringList();
// go by-hash cleanup
map<string,ReleaseWriter::CheckSum>::const_iterator prev = CheckSums.begin();
// go by-hash cleanup
map<string,ReleaseWriter::CheckSum>::const_iterator prev = CheckSums.begin();
- if (_config->FindB("APT::FTPArchive::DoByHash", true) == true)
+ if (_config->FindB("APT::FTPArchive::DoByHash", false) == true)
{
for(map<string,ReleaseWriter::CheckSum>::const_iterator I = CheckSums.begin();
I != CheckSums.end(); ++I)
{
for(map<string,ReleaseWriter::CheckSum>::const_iterator I = CheckSums.begin();
I != CheckSums.end(); ++I)
configarchitecture 'i386'
configcompression 'gz' '.'
configarchitecture 'i386'
configcompression 'gz' '.'
+# enable by-hash in apt-ftparchive
+echo 'APT::FTPArchive::DoByHash "1";' >> aptconfig.conf
+
# build one pacakge
buildsimplenativepackage 'foo' 'i386' '1' 'unstable'
buildaptarchivefromincoming
# build one pacakge
buildsimplenativepackage 'foo' 'i386' '1' 'unstable'
buildaptarchivefromincoming