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

bool QApt::Backend::isBroken (  )  const

Checks whether or not the cache has broken packages or has a null dependency cache

Returns:
true if the index is broken

false if the index isn't broken

Definition at line 430 of file backend.cpp.

{
    Q_D(const Backend);

    if (d->cache->depCache() == 0) {
        return true;
    }

    // Check for broken things
    if (d->cache->depCache()->BrokenCount() != 0) {
        return true;
    }

    return false;
}


Generated by  Doxygen 1.6.0   Back to index