You are not logged in.

#1 2007-07-08 15:23:04

Cx
Member
From: Czech Republic, Pardubice
Registered: 2007-03-12
Posts: 15

How can I catch pacman's stdout

Hallo,
we are making pacman frontend in python and qt4, but we have problem with progressbar. We don't know how to catch information about downloading packages. Do you know how simply get it? Thank's for any suggestion.

Offline

#2 2007-07-08 15:33:48

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

Re: How can I catch pacman's stdout

Any reason for using pacman directly and not libalpm ?
This is the main change added in pacman 3, and was done specifically for this purpose.


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

Offline

#3 2007-07-08 15:41:29

Cx
Member
From: Czech Republic, Pardubice
Registered: 2007-03-12
Posts: 15

Re: How can I catch pacman's stdout

Yeah i know, but python wrapper is from 2005 sad

Offline

#4 2007-07-08 15:42:20

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

Re: How can I catch pacman's stdout

By the way, Georg Grabler aka STiat was working on python bindings : pyalpm
see his blog there : http://213.129.245.26/~blog/
According to the last posts, he's quite busy currently, but maybe you could bring some help ?


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

Offline

#5 2007-07-08 15:49:36

Cx
Member
From: Czech Republic, Pardubice
Registered: 2007-03-12
Posts: 15

Re: How can I catch pacman's stdout

Ok, i'll write to him and i'll try it. Thank you.

Offline

#6 2007-07-08 20:59:14

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 606

Re: How can I catch pacman's stdout

He caught me on Jabber.

We solved it, and he is able to contribute to the project now.
Shining is right, i'm very busy currently... pyalpm could be finished already if i had time.

Yours,
Georg


Ability is nothing without opportunity.

Offline

#7 2007-07-09 07:10:02

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

Re: How can I catch pacman's stdout

STiAT wrote:

He caught me on Jabber.
We solved it, and he is able to contribute to the project now.

ok, good to know.

Shining is right, i'm very busy currently... pyalpm could be finished already if i had time.

Well, hopefully it'll be finished one day. smile


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

Offline

Board footer

Powered by FluxBB