Logo Search packages:      
Sourcecode: qapt version File versions  Download package

bool QApt::Backend::xapianIndexNeedsUpdate (  )  const

Checks whether or not the search index needs updating

true if the index needs updating

false if the index doesn't need updating

Definition at line 446 of file backend.cpp.

    Q_D(const Backend);

   // If the cache has been modified after the xapian timestamp, we need to rebuild
   QDateTime statTime;
   statTime = QFileInfo(_config->FindFile("Dir::Cache::pkgcache").c_str()).lastModified();
   if (d->xapianTimeStamp < statTime.toTime_t()) {
      return true;

   return false;

Generated by  Doxygen 1.6.0   Back to index