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

void QApt::Package::setInstall (  ) 

Marks the package for installation

Definition at line 883 of file package.cpp.

References state(), and ToInstall.

Referenced by QApt::Backend::markPackageForInstall().

{
    d->depCache->MarkInstall(*d->packageIter, true);

    // FIXME: can't we get rid of it here?
    // if there is something wrong, try to fix it
    if (!state() & ToInstall || d->depCache->BrokenCount() > 0) {
        pkgProblemResolver Fix(d->depCache);
        Fix.Clear(*d->packageIter);
        Fix.Protect(*d->packageIter);
        Fix.Resolve(true);
    }

    d->backend->packageChanged(this);
}


Generated by  Doxygen 1.6.0   Back to index