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

Bug#859767: apt: could there be possibility to have verbose mode when reading package lists



Control: tag -1 moreinfo

On Fri, Apr 07, 2017 at 02:25:42PM +0530, shirish शिरीष wrote:
> Package: apt
> Version: 1.4~rc2
> Severity: wishlist
> 
> Dear Maintainer,
>  Whenever I run '$ sudo apt update ' it does all the things that is
> required of it.
> 
> At the very end however at times there is a huge time-gap where I have
> no idea if whether apt/aptitude or probably libapt is working or not.
> 
> Fetched 66.6 MB in 1h 41min 8s (11.0 kB/s)
> Reading package lists... Done
> 
> The time gap is between giving how much apt had to gather and how much
> time it took him and telling the Reading package lists ...Done.

Before reading the package lists start, hook scripts are run. Then
there is the reading package lists phase, which shows progress.

> 
> I do not know how easy or hard (probably hard) would it be to
> implement a percentile/percentage thing so instead of have just having
> -
> 
> Reading package lists .... Done it does like Reading package...lists
> 5% incrementing it as time goes on till its 100% and then get the ...
> Done message.

I don't really understand what you want. Reading package lists currently
does show a percentage while working (as long as stdout is a terminal):

  Reading package lists... 0%
  Reading package lists... 0%
  Reading package lists... 1%
  Reading package lists... 19%
  [... about 100 updates ... ]
  Reading package lists... Done

(stripping away the \r). From what I'm reading you want this, but then
this is already what's happening.


-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev
                  |  Ubuntu Core Developer |
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to ('inline').  Thank you.


Reply to: