Re: Debconf and PackageKit

2009-10-08 Thread Daniel Nicoletti
Hi again, now aptcc backend install/remove/update things in noninteractive mode, and following Josselin Mouette advices I'm planning to write a DBus frontend to debconf that will emit a signal when it needs a Session frontend to be attached. I created a sequence diagram to ilustrate what i'm plan

Re: Debconf and PackageKit

2009-10-06 Thread Daniel Nicoletti
I don't know if there is a better list to ask this question but as people here know dpkg well i'd like to know if there is some way of telling it to use another fd as stdin, I have done the following code to handle answering to conffile prompts but it works some times and other times it doesn't...

Re: Debconf and PackageKit

2009-10-02 Thread Raphael Hertzog
On Fri, 02 Oct 2009, Jean-Christophe Dubacq wrote: > > Ok now I'm forking and using --status-fd, but i got this localized > > pmstatus:k3b:0:Removendo k3b > > > > which i can't parse, actually i'm a bit afraid if it's status are > > some kind of standard, maybe i should look at the source.. :P > >

Re: Debconf and PackageKit

2009-10-02 Thread Jean-Christophe Dubacq
Daniel Nicoletti a écrit : > Hey Josselin, > >> De: Josselin Mouette > > This solution is not implemented as I don't know debconf verry well > but there is one problem that I'd like to know if there is a already a way > to deal with this: > when aptcc backend starts installing pac

Re: Debconf and PackageKit

2009-10-01 Thread Daniel Nicoletti
Hey Josselin, > De: Josselin Mouette > > > > This solution is not implemented as I don't know debconf verry well > > > > but there is one problem that I'd like to know if there is a already a > > > > way > > > > to deal with this: > > > > when aptcc backend starts installing packages it's status

Re: Res: Debconf and PackageKit

2009-09-29 Thread Raphael Hertzog
On Tue, 29 Sep 2009, Daniel Nicoletti wrote: > > I don't understand this part. Why would you have to unset LANG? What > > exactly do you want to avoid being localized? > > > When apt-get install foo is installing things dpkg prints removing, > unpacking, installing and those need to be mapped to

Re: Debconf and PackageKit

2009-09-29 Thread Daniel Nicoletti
> De: Josselin Mouette > Le mardi 29 septembre 2009 à 11:37 -0700, Daniel Nicoletti a écrit : > > > Currently, the question will simply be ignored, the frontend being set > > > to noninteractive when there is no TTY nor display available. > > The hard work imo will be if i start in an interactive

Re: Debconf and PackageKit

2009-09-29 Thread Josselin Mouette
Le mardi 29 septembre 2009 à 11:37 -0700, Daniel Nicoletti a écrit : > > Currently, the question will simply be ignored, the frontend being set > > to noninteractive when there is no TTY nor display available. > The hard work imo will be if i start in an interactive mode (in the backend) > but whe

Re: Debconf and PackageKit

2009-09-29 Thread Daniel Nicoletti
> De: Josselin Mouette > Currently, the question will simply be ignored, the frontend being set > to noninteractive when there is no TTY nor display available. The hard work imo will be if i start in an interactive mode (in the backend) but when a question needs to popup the user loged out and i n

Res: Debconf and PackageKit

2009-09-29 Thread Daniel Nicoletti
> De: Julien Cristau > > >>>This solution is not implemented as I don't know debconf verry well > > but there is one problem that I'd like to know if there is a already a way > > to deal with this: > > when aptcc backend starts installing packages it's status are in a fd > > which might be locali

Re: Debconf and PackageKit

2009-09-29 Thread Josselin Mouette
Le mardi 29 septembre 2009 à 10:26 -0700, Daniel Nicoletti a écrit : > Installing/Removing/Updating are the last problem of this backend > mostly because of debconf. > PackageKit works this way (if you didn't take a look at the web site): > > Backend (apt | aptcc | yum | zyppy ) > || > || (so

Re: Debconf and PackageKit

2009-09-29 Thread Julien Cristau
On Tue, Sep 29, 2009 at 10:26:01 -0700, Daniel Nicoletti wrote: > >>>This solution is not implemented as I don't know debconf verry well > but there is one problem that I'd like to know if there is a already a way > to deal with this: > when aptcc backend starts installing packages it's status are

Debconf and PackageKit

2009-09-29 Thread Daniel Nicoletti
Hi, following pusling advice I'd like to explain the issues involved in this subject and a proposed solution. If you don't know anything about PackageKit it might be interesting to look at www.packagekit.org. I started to contribute to PackageKit willing to have it working on the system I use (Deb