qapt-deb-installer displays 1000x wrong "Installed Size"

Bug #910674 reported by skierpage
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qapt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In Kubuntu 11.10 KDE 4.7.3 I downloaded the Google Music Manager app from https://music.google.com/music/listen#manager_pl as a 64-bit .deb file . Dolphin's Open With... offered QApt Package Installer, which is qapt-deb-installer version 1.2.

Its Package Installer window > Details tab shows "Installed Size: 9.5 KiB". That's clearly wrong, it's several orders of magnitude off.

 % dpkg-deb -I /tmp/google-musicmanager-beta_current_amd64.deb
reports
 new debian package, version 2.0.
 size 3033010 bytes: control archive= 4690 bytes.
 ...
 Maintainer: Google Music Team <email address hidden>
 Installed-Size: 9704
 ...

qapt-deb-installer seems to be interpreting this Installed-Size number as bytes and converting it to KiB, but that's wrong. I've spent an hour searching teh IntarWub for Installed-Size and the only hint I've found of its intent is in deb-substvars(5) which says "If this variable isn't set dpkg-gencontrol will use du -k debian/tmp to find the default value." I.e. it is indeed already in K (1024 bytes, kibibytes, KiB, etc.).

GDebi Package Installer's very similar Details tab says the same .deb file is Size: 9704 KiB. So a fix is to just do what gdebi-kde does, which is display the deb's Installed-Size followed by "KiB" rather than (??) performing some units conversion.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: qapt-deb-installer 1.2.1-0ubuntu2
ProcVersionSignature: Ubuntu 3.0.0-15.24-generic 3.0.13
Uname: Linux 3.0.0-15-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Sun Jan 1 15:55:31 2012
ProcEnviron:
 LANGUAGE=
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: qapt
UpgradeStatus: Upgraded to oneiric on 2011-10-14 (79 days ago)

Revision history for this message
skierpage (skierpage) wrote :
Revision history for this message
skierpage (skierpage) wrote :

http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Installed-Size says
"The disk space is given as the integer value of the estimated installed size in bytes, divided by 1024 and rounded up." So yes, it's definitely already in KiB.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Fixed in 1.2.2.

Changed in qapt (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.