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

QString QApt::Package::sourcePackage (  )  const

Member function that returns the source package corresponding to the package

The source package of the package as a QString

Definition at line 167 of file package.cpp.

References name().

Referenced by changelogUrl().

    QString sourcePackage;
    pkgCache::VerIterator ver = (*d->depCache)[*d->packageIter].CandidateVerIter(*d->depCache);
    pkgRecords::Parser &rec = d->records->Lookup(ver.FileList());
    sourcePackage = QString::fromStdString(rec.SourcePkg());
    // If empty, use name. (Name would equal source package in that case)
    if (sourcePackage.isEmpty()) {
        sourcePackage = name();

    return sourcePackage;

Generated by  Doxygen 1.6.0   Back to index