[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#185424: base-config: Should display progress bar while installing packages

(I apologize in advance for any weirdness; my usual SMTP server seems to be
refusing connections for some reason so I'm trying the university's webmail

On Thursday 02 June 2005 08:52 am, Colin Watson wrote:
> One tricky bit is that we have to use 'aptitude search' first to figure
> out how long the progress bar needs to be, and then pass some hairy
> arguments to aptitude to get dpkg --status-fd information. If aptitude
> had some way to output progress bar information to a given file
> descriptor, that would be more efficient, especially if it could process
> dpkg --status-fd information itself.
> We'd want a line on the file descriptor telling us how long the progress
> bar should be, and then lines each time the progress bar text or
> position should be updated, and probably a line at the end. The text
> should be tokens rather than English strings, so that they can be
> localised using debconf templates. debootstrap does this sort of thing
> in its --debian-installer interaction mode.
> Daniel, does this seem tractable to you? I don't know aptitude very
> well, but I may be able to hack on it a bit.

  Hm, the progress bar is used to indicate progress in the process of 
installing packages, right?  I think that this doesn't belong (entirely) in 
the aptitude layer; at the very least, apt should be responsible for keeping 
track of how much progress has been made in installing packages.  This should 
be done by using an instance of the OpProgress class, which could then be 
specialized to provide output in whatever format you want (the specialization 
might make more sense in aptitude, but then again it sounds generically 
useful enough that you might want to put it into apt).


/------------------- Daniel Burrows <dburrows@debian.org> ------------------\
|  Thank you for reading me, but the real .signature is in another email.   |
\---------------- The Turtle Moves! -- http://www.lspace.org ---------------/

Reply to: