FS#11846 - pacman -Qu does not shows the correctly total download size

Attached to Project: Pacman
Opened by Hugo Doria (hdoria) - Wednesday, 22 October 2008, 15:20 GMT
Last edited by Dan McGee (toofishes) - Saturday, 01 November 2008, 01:03 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 3.2.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

pacman does not show the correctly total download size. Also, the result is different from pacman -Su.

Example:

# pacman -Qu

Checking for package upgrades...
warning: avant-window-navigator: local (0.2.6-2) is newer than community (0.2.6-1)
warning: iptables: local (1.4.2-1) is newer than core (1.4.0-2)
warning: xorg-server: local (1.4.99.906-2) is newer than extra (1.4.2-2)

Remove (1): bluez-libs-3.32-1

Total Removed Size: 0.31 MB

Targets (8): bluez-4.1-1 evolution-data-server-2.24.1-1 gnome-control-center-2.24.0.1-3 k3b-1.0.5-2 libgphoto2-2.4.3-1 samba-3.2.4-3 smbclient-3.2.4-3 tdb-3.2.4-1

Total Download Size: 0.00 MB
Total Installed Size: 145.76 MB

# pacman -Su

:: Starting full system upgrade...
:: Replace bluez-libs with testing/bluez? [Y/n]
warning: avant-window-navigator: local (0.2.6-2) is newer than community (0.2.6-1)
warning: iptables: local (1.4.2-1) is newer than core (1.4.0-2)
warning: xorg-server: local (1.4.99.906-2) is newer than extra (1.4.2-2)
resolving dependencies...
looking for inter-conflicts...

Remove (1): bluez-libs-3.32-1

Total Removed Size: 0.31 MB

Targets (8): bluez-4.1-1 evolution-data-server-2.24.1-1 gnome-control-center-2.24.0.1-3 k3b-1.0.5-2 libgphoto2-2.4.3-1 tdb-3.2.4-1 smbclient-3.2.4-3 samba-3.2.4-3

Total Download Size: 49.51 MB
Total Installed Size: 145.76 MB


pacman -Qu gives me 0MB, while pacman -Su shows almost 50MB

Both shows the same Total Installed Size, tought.

Im using the lastest pacman:

# pacman -Q pacman
pacman 3.2.1-1
This task depends upon

Closed by  Dan McGee (toofishes)
Saturday, 01 November 2008, 01:03 GMT
Reason for closing:  Won't fix
Additional comments about closing:  See final comment. Size is no longer shown in new format.
Comment by Nagy Gabor (combo) - Wednesday, 22 October 2008, 19:46 GMT
Good catch. The problem is that compute_download_size() is called from _alpm_sync_prepare() which is omitted in case of -Qu.

See also (5.):
http://www.archlinux.org/pipermail/pacman-dev/2008-August/012934.html
Comment by Nagy Gabor (combo) - Wednesday, 22 October 2008, 19:48 GMT
Well, in fact with -Qu the download size is 0.00 MB, because we won't download anything ;-)
Comment by Hugo Doria (hdoria) - Wednesday, 22 October 2008, 21:32 GMT
I understand hwat you said, but i do not think it should be this way. See:

1) If it will not download anything, why show "Total download size"?
2) pacman -Qu wont install anything, but you can see a "Total Installed Size" message (that shows correctly). Following what you said `pacman -Qu` should show: Total Installed Size: 0.00 MB
3) pacman does not show a "Total Removed Size" when there is nothing to remove. Then, why show a total download when it will not download anything?
Comment by Dan McGee (toofishes) - Saturday, 01 November 2008, 01:02 GMT

Loading...