[Aptitude-devel] Bug#446085: Show "real" DL size
Manuel A. Fernandez Montecelo
manuel.montezelo at gmail.com
Mon Feb 29 16:24:50 GMT 2016
Control: tags -1 + pending
2007-10-10 13:18 Trent W. Buck:
>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.
One comment though. Contrary to what the text of both merged requests
suggest, the interactive mode is fundamentally different from the
command line mode (and apt-get) and achieving this was not trivial to
accomplish (presumably that's why it remained unaddressed for years).
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
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.
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>
More information about the Aptitude-devel