-bool configcache::openInFile() {
- while( (!inFile.is_open()) && inFiles.size() > 0 )
- {
- if(out) *out->log << "CCACHE: Opening dat-file: " << inFiles.back().filename << endl << flush;
-
- openFileDesc = inFiles.back();
- inFile.open( (DATADIR + "/" + inFiles.back().filename).c_str(), std::ios::binary );
- inFiles.pop_back();
-
- if( !inFile.is_open() ) continue;
-
- inBuffer = new boost::iostreams::filtering_istreambuf;
- inBuffer->push( boost::iostreams::bzip2_decompressor() );
- inBuffer->push(inFile);
-
- return true;
- }
-
- return false;
-}
-
-void configcache::readHeader()