summaryrefslogtreecommitdiff
path: root/ftparchive/writer.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-09-13 14:34:15 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2015-09-14 15:22:19 +0200
commit2cc48828ea1a0ca0a0729c403abc9d7b25945880 (patch)
treee83e39e3174ffec9b39ccfa0de592856073d3509 /ftparchive/writer.cc
parentd5a46051cbefe237a9b855603f6cbd50e8e407f2 (diff)
use APT::FTPArchive hash settings as default for APT::FPArchive::$filetype
Diffstat (limited to 'ftparchive/writer.cc')
-rw-r--r--ftparchive/writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc
index 11ba3a323..27d6e98e0 100644
--- a/ftparchive/writer.cc
+++ b/ftparchive/writer.cc
@@ -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;