]> git.saurik.com Git - apt.git/commitdiff
use APT::FTPArchive hash settings as default for APT::FPArchive::$filetype
authorDavid Kalnischkies <david@kalnischkies.de>
Sun, 13 Sep 2015 12:34:15 +0000 (14:34 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 14 Sep 2015 13:22:19 +0000 (15:22 +0200)
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;