Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1189069 - please export size of Package's rpm in DNF api
Summary: please export size of Package's rpm in DNF api
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1156485
TreeView+ depends on / blocked
 
Reported: 2015-02-04 11:41 UTC by Jakub Filak
Modified: 2016-12-01 00:48 UTC (History)
8 users (show)

Fixed In Version: dnf-0.6.4-1.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-23 12:56:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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"


Note You need to log in before you can comment on or make changes to this bug.