You are not logged in.
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
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
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
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?
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 Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
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
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