Returns the expected install size of the package independently of the
package being currently installed or not.
Details
Details
- Reviewers
sitter - Commits
- R548:3c5414700010: add package installedSize
Diff Detail
Diff Detail
- Repository
- R548 QAPT Library
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
I'd write that as
const pkgCache::VerIterator &ver = d->packageIter.CurrentVer(); if (!ver.end()) { return qint64(ver->InstalledSize); } return availableInstalledSize();
easier on the eyes IMO. Looks good either way though. Thanks π