X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/b80a3fda9209144605a6306ba24ec2051d387f50..7f5403eed95da4350dcc03d817eb8468dab07142:/configcache.cpp diff --git a/configcache.cpp b/configcache.cpp index b375230..1095775 100644 --- a/configcache.cpp +++ b/configcache.cpp @@ -172,7 +172,7 @@ void * configcache::getHeader(const string& headerid) { return NULL; } -bool configcache::readConfig(vector *excludefiles) +bool configcache::readConfig(vector *excludeFileHashes) { if(DATADIR == "" || MODE == CACHE_MODE_DISABLED) return false; @@ -190,9 +190,9 @@ bool configcache::readConfig(vector *excludefiles) openFileDesc = inFiles.back(); - if (excludefiles != NULL) - for (vector::iterator exit = excludefiles->begin(); exit != excludefiles->end(); ++exit) - if ( *exit == inFiles.back().filename ) { + if (excludeFileHashes != NULL) + for (vector::iterator exit = excludeFileHashes->begin(); exit != excludeFileHashes->end(); ++exit) + if ( *exit == hash(inFiles.back().filename) ) { excludethisfile = true; break; }