]> git.saurik.com Git - apt.git/blobdiff - ftparchive/writer.cc
use APT::FTPArchive hash settings as default for APT::FPArchive::$filetype
[apt.git] / ftparchive / writer.cc
index 11ba3a3233b1851b1e641bec41e7f1ff2984ccd8..27d6e98e0340a25c13cd6b665f2bd8ec47843110 100644 (file)
@@ -56,7 +56,7 @@ FTWScanner *FTWScanner::Owner;
 // ConfigToDoHashes - which hashes to generate                         /*{{{*/
 static void SingleConfigToDoHashes(unsigned int &DoHashes, std::string const &Conf, unsigned int const Flag)
 {
-   if (_config->FindB(Conf, true) == true)
+   if (_config->FindB(Conf, (DoHashes & Flag) == Flag) == true)
       DoHashes |= Flag;
    else
       DoHashes &= ~Flag;