[Aptitude-devel] Bug#446085: Bug#446085: Show "real" DL size

Axel Beckert abe at debian.org
Mon Feb 29 19:06:58 GMT 2016


Hi,

Manuel A. Fernandez Montecelo wrote:
> >When apt-get installing (and aptitude's line interface, I think), the
> >user can see both the total download size and the amount that is not
> >available locally (either in apt's cache or in a CDROM repository).
> >Using aptitude's GUI, I cannot find the latter datum.  I would like it
> >to be visible in GUI mode, e.g. on the top line instead of "DL Size:
> >813MB" print "DL Size: 813MB (212MB)".
> 
> This is implemented now, marking as +pending.

Yay, this always annoyed me when using debdelta-upgrade to download
packages where possible.

Thanks, looking forward to the next release! :-)

> In command line mode and apt-get, the check has to be done only once,
> but in the interactive mode the check has to be done for every package
> that changes state (to install, to remove, etc).  So this has to happen
> multiple times, accessing the disk and checking which files are already
> downloaded.  Additionally, for technical reasons of how aptitude's
> interface is implemented, this was done in every screen update,
> e.g. when scrolling and not only when packages changed.
> 
> Even if it takes only fractions of a second, it quickly becomes a
> problem for performance, and the program could feel sluggish -- not
> noticeable in command-line programs, but extremely important for
> interactive ones.
> 
> So in the end this needed to change quite a few things, working around
> the problem by checking only when needed and caching the results,
> changes in the interface of the field and a few other changes.

Sounds like a solid solution. Otherwise my proposition would have been
to update the "still to download" field only upon pressing "g".

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



More information about the Aptitude-devel mailing list