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

bool QApt::Package::wouldBreak (  )  const

Member function that returns whether or not the package would break the package system if changed.

true if it would break

false otherwise

Definition at line 861 of file package.cpp.

References InstallBroken, Installed, state(), ToKeep, and ToRemove.

    int pkgState = state();

    if ((pkgState & ToRemove) || (!(pkgState & Installed) && (pkgState & ToKeep))) {
        return false;
    return pkgState & InstallBroken;

Generated by  Doxygen 1.6.0   Back to index