if (Files[I->ID] == 0)
return;
}
- // We store that to make sure that the destructor won't segfault,
- // even if the Cache object was destructed before this instance.
- PackageFileCount = Cache.HeaderP->PackageFileCount;
}
/*}}}*/
// Records::~pkgRecords - Destructor /*{{{*/
/* */
pkgRecords::~pkgRecords()
{
- for (unsigned I = 0; I != PackageFileCount; I++)
+ for (unsigned I = 0; I != Cache.HeaderP->PackageFileCount; I++)
delete Files[I];
delete [] Files;
}
return *Files[Ver.File()->ID];
}
/*}}}*/
-// Records::Lookup - Get a parser for the package description file /*{{{*/
-// ---------------------------------------------------------------------
-/* */
-pkgRecords::Parser &pkgRecords::Lookup(pkgCache::DescFileIterator const &Desc)
-{
- Files[Desc.File()->ID]->Jump(Desc);
- return *Files[Desc.File()->ID];
-}
- /*}}}*/