You are not logged in.

#1 2009-06-15 15:18:20

hofa
Member
Registered: 2009-01-16
Posts: 25

Total Download Size issue

I made this little bash script to get my amount of updates and download size in conky.

I use pacman -Qu to get the info I need, but something seems broken.

When I issue this command, I get this output:

Checking for package upgrades... 

Targets (10): e2fsprogs-1.41.6-1 [1.24 MB]  fam-2.7.0-12 [0.09 MB]  
              gconf-2.26.2-2 [1.78 MB]  libv4l-0.5.99-1 [0.06 MB]  
              lua-5.1.4-3 [0.37 MB]  mozilla-common-1.4-1 [0.00 MB]  
              nspr-4.8-1 [0.34 MB]  ruby-1.8.7_p173-1 [2.49 MB]  
              vte-0.20.5-1 [0.69 MB]  xulrunner-1.9.0.11-1 [15.70 MB]  

Total Download Size:    0.00 MB
Total Installed Size:   86.85 MB

When you look at the 'Total Download Size' , it says 0.00 MB, but when I run pacman -Su, I get the following:

:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (11): e2fsprogs-1.41.6-1 [1.24 MB]  fam-2.7.0-12 [0.09 MB]  
              gconf-2.26.2-2 [1.78 MB]  libv4l-0.5.99-1 [0.06 MB]  
              lua-5.1.4-3 [0.37 MB]  mozilla-common-1.4-1 [0.00 MB]  
              nspr-4.8-1 [0.34 MB]  ruby-1.8.7_p173-1 [2.49 MB]  
              vte-0.20.5-1 [0.69 MB]  mime-types-1.0-2 [0.01 MB]  
              xulrunner-1.9.0.11-1 [15.70 MB]  

Total Download Size:    22.77 MB
Total Installed Size:   86.88 MB

Proceed with installation? [Y/n]

This second one is correct, I still need to download the packages.


Can someone tell me if this issue has been resolved with a patch or so?

Last edited by hofa (2009-06-15 15:25:25)

Offline

#2 2009-06-15 15:24:46

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Total Download Size issue

This has been noted and I believe bug reports have been opened on it in the past.  I believe that the whole output of -Qu is changing with pacman 3.3, but don't quote me on it.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#3 2009-06-15 15:29:53

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

Re: Total Download Size issue

hofa wrote:

I made this little bash script to get my amount of updates and download size in conky.

I use pacman -Qu to get the info I need, but something seems broken.

When I issue this command, I get this output:

Checking for package upgrades... 

Targets (10): e2fsprogs-1.41.6-1 [1.24 MB]  fam-2.7.0-12 [0.09 MB]  
              gconf-2.26.2-2 [1.78 MB]  libv4l-0.5.99-1 [0.06 MB]  
              lua-5.1.4-3 [0.37 MB]  mozilla-common-1.4-1 [0.00 MB]  
              nspr-4.8-1 [0.34 MB]  ruby-1.8.7_p173-1 [2.49 MB]  
              vte-0.20.5-1 [0.69 MB]  xulrunner-1.9.0.11-1 [15.70 MB]  

Total Download Size:    0.00 MB
Total Installed Size:   86.85 MB

When you look at the 'Total Download Size' , it says 0.00 MB, but when I run pacman -Su, I get the following:

:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (11): e2fsprogs-1.41.6-1 [1.24 MB]  fam-2.7.0-12 [0.09 MB]  
              gconf-2.26.2-2 [1.78 MB]  libv4l-0.5.99-1 [0.06 MB]  
              lua-5.1.4-3 [0.37 MB]  mozilla-common-1.4-1 [0.00 MB]  
              nspr-4.8-1 [0.34 MB]  ruby-1.8.7_p173-1 [2.49 MB]  
              vte-0.20.5-1 [0.69 MB]  mime-types-1.0-2 [0.01 MB]  
              xulrunner-1.9.0.11-1 [15.70 MB]  

Total Download Size:    22.77 MB
Total Installed Size:   86.88 MB

Proceed with installation? [Y/n]

This second one is correct, I still need to download the packages.


Can someone tell me if this issue has been resolved with a patch or so?

with -Qu, pacman is trying to update from the local packages in the pacman cache. is it not?


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

#4 2009-06-15 15:35:40

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Total Download Size issue

theringmaster wrote:

with -Qu, pacman is trying to update from the local packages in the pacman cache. is it not?

No, it looks at the sync database to determine what would be downloaded/upgraded.

@hofa
Did you run "pacman -Su" or "pacman -Syu"? Is there any chance that you updated the database for the sync operation but not for the query operation?


rson451 wrote:

I believe that the whole output of -Qu is changing with pacman 3.3, but don't quote me on it.

uh oh

*heads off to make a collateral damage assessment of his scripts*


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2009-06-15 15:36:39

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Total Download Size issue

rson451 wrote:

This has been noted and I believe bug reports have been opened on it in the past.  I believe that the whole output of -Qu is changing with pacman 3.3, but don't quote me on it.

I am just quoting you on it, but it is correct so no problem smile
I will also quote myself :
http://bugs.archlinux.org/task/12866#comment37663


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB