[Aptitude-devel] Bug#817547: Bug#817547: aptitude: Download size miscalculated (not re-calculated?) after an TUI install run

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Mon Mar 14 17:03:18 UTC 2016


Control: tags -1 + pending


Hi,

2016-03-09 23:34 To Axel Beckert:
>Hi Axel,
>
>2016-03-09 20:58 Axel Beckert:
>>Hi again,
>>
>>Axel Beckert wrote:
>>>At the end I pressed enter where it says "Press Return to continue."
>>>
>>>On top, aptitude says "Disk: +36.9 kB        DL: 109 MB/109 MB" despite
>>>only "sassc" is marked as being installed which needs 36.9 kB disk space if
>>>installed
>>>
>>>I think these "109MB" are wrong here since just installing sassc surely
>>>can't cause over 100MB of needed downloads.
>>
>>If I quit aptitude with "q" + "y" and start it again with "aptitude",
>>that line only says "Disk: +36.9 kB          DL: 0 B/11.5 kB" which
>>approximately what I expect.
>
>That's strange.  If the installation is successful, seems to work fine.
>
>Reinstalling packages also produce strange effects, I haven't been able
>to find a proper pattern yet.
>
>I think that part of the problem is that the signals when updated the
>planned action of the package are not emitted as they should, or at
>least as I expected.
>
>Needs more investigation...

I think that I fixed the problem, at least in all the cases that I
tested (including the failure to install sassc and pysassc [1]), by
resetting the information when the internal pkgcache is closed (which is
done before running dpkg, for example).

In any case, please do keep an eye on this in the near future just in
case (I am sure that you'll do it even if I don't ask :) ).


[1]
sassc fails:

  Unpacking sassc (3.3.2-3) ...
  dpkg: error processing archive /var/cache/apt/archives/sassc_3.3.2-3_amd64.deb (--unpack):
   trying to overwrite '/usr/share/man/man1/sassc.1.gz', which is also in package pysassc 0.9.3-1
  Processing triggers for libc-bin (2.21-9) ...
  Processing triggers for man-db (2.7.5-1) ...
  Errors were encountered while processing:
   /var/cache/apt/archives/sassc_3.3.2-3_amd64.deb

These 3 get installed:

  Setting up libsass0:amd64 (3.3.3-1) ...
  Setting up python-libsass (0.9.3-1) ...
  Setting up pysassc (0.9.3-1) ...

And afterwards, once the curses thing is reloaded, sassc remains to be
installed and the DL size field shows:

  DL: 0 B/11.5 kB


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Aptitude-devel mailing list