Bug 1189069

Summary: please export size of Package's rpm in DNF api
Product: [Fedora] Fedora Reporter: Jakub Filak <jfilak>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: akozumpl, jberan, jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-0.6.4-1.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-23 12:56:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1156485    

Description Jakub Filak 2015-02-04 11:41:13 UTC
Description of problem:
An utterly cool script I am porting to DNF asks users whether they want to download X Bytes on their disk. The X is a sum of download sizes of all needed rpm packages. Unfortunately, DNF does not expose "download size" in its API. I only found an undocumented member called "size" of the class Package.

Version-Release number of selected component (if applicable):
dnf-0.6.3-2.fc21.noarch

Comment 1 Jakub Filak 2015-02-05 14:22:34 UTC
Correction: DNF "size" is Yum "downloadsize"