qapt-deb-installer displays 1000x wrong "Installed Size"
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:/
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-
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
ProcVersionSign
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)
http:// www.debian. org/doc/ debian- policy/ ch-controlfield s.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.