PackageKit provides a variant of pk_backend_job_details() called pk_backend_job_details_full() which includes the download_size field
https://github.com/PackageKit/PackageKit/blob/v1.3.2/src/pk-backend-job.h#L198
This is not hooked up to the PackageKit-Qt bindings
https://github.com/PackageKit/PackageKit-Qt/blob/v1.1.4/src/details.h#L33
Note that not all backends support the pk_backend_job_details_full() variant see:
PackageKit/PackageKit#781
So some care will have to been taken in either this repo or downstream users to gracefully fallback
Making the the download_size field available will allow downstream users such as discover to show the Download Size for available packagekit updates
Example screenshot
PackageKit provides a variant of
pk_backend_job_details()calledpk_backend_job_details_full()which includes thedownload_sizefieldhttps://github.com/PackageKit/PackageKit/blob/v1.3.2/src/pk-backend-job.h#L198
This is not hooked up to the PackageKit-Qt bindings
https://github.com/PackageKit/PackageKit-Qt/blob/v1.1.4/src/details.h#L33
Note that not all backends support the
pk_backend_job_details_full()variant see:PackageKit/PackageKit#781
So some care will have to been taken in either this repo or downstream users to gracefully fallback
Making the the
download_sizefield available will allow downstream users such as discover to show the Download Size for available packagekit updatesExample screenshot