Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#25186 - Net Upgrade Size calculation with replaces

Attached to Project: Pacman
Opened by Allan McRae (Allan) - Wednesday, 20 July 2011, 11:11 GMT
Last edited by Allan McRae (Allan) - Monday, 20 February 2012, 06:04 GMT
Task Type Bug Report
Category Backend/Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version git
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

1) Just replacing libreoffice with libreoffice-common and libreoffice-en-GB:

Remove (1): libreoffice-3.4.1-2

Total Removed Size: 246.37 MiB

Targets (2): libreoffice-en-GB-3.4.2rc1-1 libreoffice-common-3.4.2rc2-1

Total Download Size: 55.39 MiB
Total Installed Size: 216.87 MiB

(Note -29.5MiB net upgrade)


2) Just upgrading r:

Targets (1): r-2.13.1-1

Total Download Size: 21.50 MiB
Total Installed Size: 44.19 MiB
Net Upgrade Size: 0.33 MiB


Doing both:
Remove (1): libreoffice-3.4.1-2

Total Removed Size: 246.37 MiB

Targets (3): libreoffice-en-ZA-3.4.2rc1-1 libreoffice-common-3.4.2rc2-1
r-2.13.1-1

Total Download Size: 83.33 MiB
Total Installed Size: 260.88 MiB
Net Upgrade Size: 217.02 MiB


I have no idea where that Net Upgrade Size comes from... (246.37-29.5+0.33 is close???)
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 20 February 2012, 06:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  Seems fixed when the non-verbose output got tidied.
Comment by Allan McRae (Allan) - Wednesday, 20 July 2011, 11:14 GMT
Or just as close: 216.87 + 0.33 = install size for libreoffice-common + libreoffice-en-GB + change for r.
Comment by Dan McGee (toofishes) - Thursday, 21 July 2011, 16:38 GMT
It is exactly what you just pointed out in your comment. This stems from us showing removes and adds separately which I've always thought is a bit funny, but didn't want to mess with in my original upgrade size patch as it brings up some other display and calculation issues.

If you do 217.02 - 246.37, you'll get -29.35 MiB, which is the "true" net upgrade size.

Loading...